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:
0481449
)
Code clean up.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 12 May 2010 01:27:49 +0000
(
01:27
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 12 May 2010 01:27:49 +0000
(
01:27
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103538
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 5b892a80e31e8be1ed9f6c8c0c440a406d62ab8c..bd24bab13e7928326ab548be53f18d85bccb511d 100644
(file)
--- a/
lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/
lib/CodeGen/TwoAddressInstructionPass.cpp
@@
-1135,10
+1135,11
@@
static void UpdateRegSequenceSrcs(unsigned SrcReg,
unsigned DstReg, unsigned SrcIdx,
MachineRegisterInfo *MRI) {
for (MachineRegisterInfo::reg_iterator RI = MRI->reg_begin(SrcReg),
-
UE = MRI->reg_end(); RI != U
E; ) {
+
RE = MRI->reg_end(); RI != R
E; ) {
MachineOperand &MO = RI.getOperand();
++RI;
MO.setReg(DstReg);
+ assert(MO.getSubReg() == 0);
MO.setSubReg(SrcIdx);
}
}