OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a915477
)
It's possible to commute instrctions with more than 3 operands.
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 23 Oct 2007 20:14:40 +0000
(20:14 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 23 Oct 2007 20:14:40 +0000
(20:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43256
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
53b08d6
..
277257b
100644
(file)
--- a/
lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/
lib/CodeGen/TwoAddressInstructionPass.cpp
@@
-143,7
+143,7
@@
bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
// so, swap the B and C operands. This makes the live ranges of A
// and C joinable.
// FIXME: This code also works for A := B op C instructions.
- if ((TID->Flags & M_COMMUTABLE) && mi->getNumOperands()
=
= 3) {
+ if ((TID->Flags & M_COMMUTABLE) && mi->getNumOperands()
>
= 3) {
assert(mi->getOperand(3-si).isRegister() &&
"Not a proper commutative instruction!");
unsigned regC = mi->getOperand(3-si).getReg();