diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-03-17 18:32:39 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-03-17 18:32:39 +0000 |
commit | e6f83878bc7cc26ae2fcf3112e6a9fe687e8eba6 (patch) | |
tree | 346a9bf745461853eec902728b64f4141870982f /lib/Target/ARM/ARMAddressingModes.h | |
parent | f04bdc565bb4afff9b8d7a5e2b36e1c6c49d6dbd (diff) |
98745 contains something unrelated to the patch.
Remove it from ARMAddressingModes.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAddressingModes.h')
-rw-r--r-- | lib/Target/ARM/ARMAddressingModes.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/Target/ARM/ARMAddressingModes.h b/lib/Target/ARM/ARMAddressingModes.h index 0b3a7d4192..21b5775227 100644 --- a/lib/Target/ARM/ARMAddressingModes.h +++ b/lib/Target/ARM/ARMAddressingModes.h @@ -131,20 +131,6 @@ namespace ARM_AM { return (Imm >> 8) * 2; } - /// getSOImmValOneRotate - Try to handle Imm with an immediate shifter - /// operand, computing the rotate amount to use. If this immediate value - /// cannot be handled with a single shifter-op, return 0. - static inline unsigned getSOImmValOneRotate(unsigned Imm) { - // A5.2.4 Constants with multiple encodings - // The lowest unsigned value of rotation wins! - for (unsigned R = 1; R <= 15; ++R) - if ((Imm & rotr32(~255U, 2*R)) == 0) - return 2*R; - - // Failed to find a suitable rotate amount. - return 0; - } - /// getSOImmValRotate - Try to handle Imm with an immediate shifter operand, /// computing the rotate amount to use. If this immediate value cannot be /// handled with a single shifter-op, determine a good rotate amount that will @@ -197,7 +183,7 @@ namespace ARM_AM { // of zero. if ((Arg & ~255U) == 0) return Arg; - unsigned RotAmt = getSOImmValOneRotate(Arg); + unsigned RotAmt = getSOImmValRotate(Arg); // If this cannot be handled with a single shifter_op, bail out. if (rotr32(~255U, RotAmt) & Arg) |