diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-11-23 03:08:51 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2017-11-23 03:08:51 +0000 |
| commit | 6aaae46f93720801a83c0738491d4cf5f1968f2b (patch) | |
| tree | f468b8de4a270979c3613481848b1f4a53807920 /llvm/lib/CodeGen/CalcSpillWeights.cpp | |
| parent | b6ad844e136e5c5ad80db276f884e20cc0bfc0ee (diff) | |
| download | bcm5719-llvm-6aaae46f93720801a83c0738491d4cf5f1968f2b.tar.gz bcm5719-llvm-6aaae46f93720801a83c0738491d4cf5f1968f2b.zip | |
[NFC] CodeGen: Handle shift amount type in DAGTypeLegalizer::SplitInteger
This patch reverts change to X86TargetLowering::getScalarShiftAmountTy in
rL318727 and move the logic to DAGTypeLegalizer::SplitInteger.
The reason is that getScalarShiftAmountTy returns a shift amount type that
is suitable for common use cases in CodeGen. DAGTypeLegalizer::SplitInteger
is a rare situation which requires a shift amount type larger than what
getScalarShiftAmountTy. In this case, it is more reasonable to do special
handling of shift amount type in DAGTypeLegalizer::SplitInteger only. If
similar situations arises the logic may be moved to a separate function.
Differential Revision: https://reviews.llvm.org/D40320
llvm-svn: 318890
Diffstat (limited to 'llvm/lib/CodeGen/CalcSpillWeights.cpp')
0 files changed, 0 insertions, 0 deletions

