projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db3cff
)
Fix off-by-one error.
author
Jim Grosbach
<grosbach@apple.com>
Fri, 1 Jul 2011 19:07:09 +0000
(19:07 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Fri, 1 Jul 2011 19:07:09 +0000
(19:07 +0000)
(low two bits always zero, so off by one bit of encoded value).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134247
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/Thumb2SizeReduction.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/Thumb2SizeReduction.cpp
b/lib/Target/ARM/Thumb2SizeReduction.cpp
index 692189ce6c77837d872e963a73eccc764c182586..c741a6e8a5b7c68fc3252561cfef981cc22ae873 100644
(file)
--- a/
lib/Target/ARM/Thumb2SizeReduction.cpp
+++ b/
lib/Target/ARM/Thumb2SizeReduction.cpp
@@
-491,7
+491,7
@@
Thumb2SizeReduce::ReduceSpecial(MachineBasicBlock &MBB, MachineInstr *MI,
// The immediate must be in range, the destination register must be a low
// reg, the predicate must be "always" and the condition flags must not
// be being set.
- if (Imm & 3 || Imm > 102
4
)
+ if (Imm & 3 || Imm > 102
0
)
return false;
if (!isARMLowRegister(MI->getOperand(0).getReg()))
return false;