projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cbfb9b2
)
Fix an unfolding bug.
author
Evan Cheng
<evan.cheng@apple.com>
Mon, 22 Oct 2007 03:03:20 +0000
(
03:03
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Mon, 22 Oct 2007 03:03:20 +0000
(
03:03
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43212
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86RegisterInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86RegisterInfo.cpp
b/lib/Target/X86/X86RegisterInfo.cpp
index c78db16a42e750a44147f4afc997ba90d1255deb..72e0fe44b306cb83fda8556e4938c2bd30c864df 100644
(file)
--- a/
lib/Target/X86/X86RegisterInfo.cpp
+++ b/
lib/Target/X86/X86RegisterInfo.cpp
@@
-1224,7
+1224,8
@@
bool X86RegisterInfo::unfoldMemoryOperand(MachineFunction &MF, MachineInstr *MI,
MIB.addReg(Reg, true);
for (unsigned i = 0, e = BeforeOps.size(); i != e; ++i)
MIB = X86InstrAddOperand(MIB, BeforeOps[i]);
- MIB.addReg(Reg);
+ if (FoldedLoad)
+ MIB.addReg(Reg);
for (unsigned i = 0, e = AfterOps.size(); i != e; ++i)
MIB = X86InstrAddOperand(MIB, AfterOps[i]);
for (unsigned i = 0, e = ImpOps.size(); i != e; ++i) {