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:
6e30c6a
)
Simplify code that toggle optional operand to ARM::CPSR.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 17 Nov 2010 08:06:50 +0000
(08:06 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 17 Nov 2010 08:06:50 +0000
(08:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119484
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMBaseInstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMBaseInstrInfo.cpp
b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 89b210273364cbcfebcdc10aa494aaab500f5555..c743628df4e7a2414f77328ada7db3006d30f978 100644
(file)
--- a/
lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/
lib/Target/ARM/ARMBaseInstrInfo.cpp
@@
-1546,9
+1546,9
@@
OptimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, int CmpMask,
case ARM::SUBri:
case ARM::t2ADDri:
case ARM::t2SUBri:
- MI->RemoveOperand(5);
- M
achineInstrBuilder(MI)
-
.addReg(ARM::CPSR, RegState::Define | RegState::Implicit
);
+ // Toggle the optional operand to CPSR.
+ M
I->getOperand(5).setReg(ARM::CPSR);
+
MI->getOperand(5).setIsDef(true
);
CmpInstr->eraseFromParent();
return true;
}