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:
7d719c3
)
When commuting these instructions, make sure to actually swap the operands too.
author
Chris Lattner
<sabre@nondot.org>
Wed, 19 Jan 2005 16:55:52 +0000
(16:55 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 19 Jan 2005 16:55:52 +0000
(16:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19694
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86InstrInfo.cpp
b/lib/Target/X86/X86InstrInfo.cpp
index a402a382c86e544780e021641ce5160bc8869de0..35782a48f03a468425e6637180e958cfbf035679 100644
(file)
--- a/
lib/Target/X86/X86InstrInfo.cpp
+++ b/
lib/Target/X86/X86InstrInfo.cpp
@@
-143,7
+143,7
@@
MachineInstr *X86InstrInfo::commuteInstruction(MachineInstr *MI) const {
unsigned A = MI->getOperand(0).getReg();
unsigned B = MI->getOperand(1).getReg();
unsigned C = MI->getOperand(2).getReg();
- return BuildMI(Opc, 3, A).addReg(
B).addReg(C
).addImm(Size-Amt);
+ return BuildMI(Opc, 3, A).addReg(
C).addReg(B
).addImm(Size-Amt);
}
default:
return TargetInstrInfo::commuteInstruction(MI);