diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-12 15:35:40 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-12 15:35:40 +0000 |
| commit | 5f6a9072882f97076910f94f3cc470a567c5bf20 (patch) | |
| tree | 67ea94598b8e81db6162e4cf1de15ef1012b391f /llvm/lib/Target/ARM/ARMISelLowering.cpp | |
| parent | f1828ef3c6009fea5d88b3ca116e71cc90df6ff0 (diff) | |
| download | bcm5719-llvm-5f6a9072882f97076910f94f3cc470a567c5bf20.tar.gz bcm5719-llvm-5f6a9072882f97076910f94f3cc470a567c5bf20.zip | |
MathExtras: Bring Count(Trailing|Leading)Ones and CountPopulation in line with countTrailingZeros
Update all callers.
llvm-svn: 228930
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index 791e08f1411..3babd207167 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -10858,11 +10858,7 @@ bool ARM::isBitFieldInvertedMask(unsigned v) { // there can be 1's on either or both "outsides", all the "inside" // bits must be 0's - unsigned TO = CountTrailingOnes_32(v); - unsigned LO = CountLeadingOnes_32(v); - v = (v >> TO) << TO; - v = (v << LO) >> LO; - return v == 0; + return isShiftedMask_32(~v); } /// isFPImmLegal - Returns true if the target can instruction select the |

