[llvm-commits] [llvm] r98751 - /llvm/trunk/lib/Target/ARM/ARMAddressingModes.h
Johnny Chen
johnny.chen at apple.com
Wed Mar 17 11:32:40 PDT 2010
Author: johnny
Date: Wed Mar 17 13:32:39 2010
New Revision: 98751
URL: http://llvm.org/viewvc/llvm-project?rev=98751&view=rev
Log:
98745 contains something unrelated to the patch.
Remove it from ARMAddressingModes.h.
Modified:
llvm/trunk/lib/Target/ARM/ARMAddressingModes.h
Modified: llvm/trunk/lib/Target/ARM/ARMAddressingModes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAddressingModes.h?rev=98751&r1=98750&r2=98751&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAddressingModes.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMAddressingModes.h Wed Mar 17 13:32:39 2010
@@ -131,20 +131,6 @@
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 @@
// 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)
More information about the llvm-commits
mailing list