diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-16 20:57:28 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-16 20:57:28 +0000 |
| commit | e5573f4f4ebacee988664f4096aef15ce378b66d (patch) | |
| tree | 7b499b7a852dd17e3665be5cb6de24809652feb8 /llvm/lib/Target/Mips/MipsISelLowering.cpp | |
| parent | b47d3560938d37d7f0d68de7b3f559dfdfba8861 (diff) | |
| download | bcm5719-llvm-e5573f4f4ebacee988664f4096aef15ce378b66d.tar.gz bcm5719-llvm-e5573f4f4ebacee988664f4096aef15ce378b66d.zip | |
[TargetLowering] Rename preferShiftsToClearExtremeBits and shouldFoldShiftPairToMask (PR41359)
As discussed on PR41359, this patch renames the pair of shift-mask target feature functions to make their purposes more obvious.
shouldFoldShiftPairToMask -> shouldFoldConstantShiftPairToMask
preferShiftsToClearExtremeBits -> shouldFoldMaskToVariableShiftPair
llvm-svn: 358526
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index f942d3f97ae..99de079788e 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -1190,8 +1190,8 @@ bool MipsTargetLowering::isCheapToSpeculateCtlz() const { return Subtarget.hasMips32(); } -bool MipsTargetLowering::shouldFoldShiftPairToMask(const SDNode *N, - CombineLevel Level) const { +bool MipsTargetLowering::shouldFoldConstantShiftPairToMask( + const SDNode *N, CombineLevel Level) const { if (N->getOperand(0).getValueType().isVector()) return false; return true; |

