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:
2c8e64d
)
Missed a check.
author
Evan Cheng
<evan.cheng@apple.com>
Thu, 19 Jun 2008 06:17:19 +0000
(06:17 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Thu, 19 Jun 2008 06:17:19 +0000
(06:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52487
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/TwoAddressInstructionPass.cpp
b/lib/CodeGen/TwoAddressInstructionPass.cpp
index d680a98a7fd254e70717d47c477158edbd40622f..0d715892136e10d1adc7434c9d9fac47d2c29ba5 100644
(file)
--- a/
lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/
lib/CodeGen/TwoAddressInstructionPass.cpp
@@
-234,7
+234,7
@@
static bool isTwoAddrUse(MachineInstr *UseMI, unsigned Reg) {
const TargetInstrDesc &TID = UseMI->getDesc();
for (unsigned i = 0, e = TID.getNumOperands(); i != e; ++i) {
MachineOperand &MO = UseMI->getOperand(i);
- if (MO.getReg() == Reg &&
+ if (MO.
isRegister() && MO.
getReg() == Reg &&
(MO.isDef() || TID.getOperandConstraint(i, TOI::TIED_TO) != -1))
// Earlier use is a two-address one.
return true;