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:
bc384a1
)
DefinesPredicate should only look for def operands. Patch by Ludwig Meier.
author
Evan Cheng
<evan.cheng@apple.com>
Sun, 5 Feb 2012 19:55:04 +0000
(19:55 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sun, 5 Feb 2012 19:55:04 +0000
(19:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149846
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 a72c9b9a2e64731a20181eb75fc7a89271d8a29a..7f40ffd65be60b1e3671b5ba6d564fc875e0ec9c 100644
(file)
--- a/
lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/
lib/Target/ARM/ARMBaseInstrInfo.cpp
@@
-513,7
+513,7
@@
bool ARMBaseInstrInfo::DefinesPredicate(MachineInstr *MI,
bool Found = false;
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
const MachineOperand &MO = MI->getOperand(i);
- if (MO.isReg() && MO.getReg() == ARM::CPSR) {
+ if (MO.isReg() && MO.
isDef() && MO.
getReg() == ARM::CPSR) {
Pred.push_back(MO);
Found = true;
}