summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-05-12 01:27:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-05-12 01:27:49 +0000
commit0c6ebc7d95c2c0af3ba066726ca2e340a2289886 (patch)
treefc5caa2f83487d1f10e367653cdb6d3f510c5288 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
parentef8b9b3cde8fc48ae2e60225281c737370b405a5 (diff)
downloadbcm5719-llvm-0c6ebc7d95c2c0af3ba066726ca2e340a2289886.tar.gz
bcm5719-llvm-0c6ebc7d95c2c0af3ba066726ca2e340a2289886.zip
Code clean up.
llvm-svn: 103538
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index 5b892a80e31..bd24bab13e7 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/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 != UE; ) {
+ RE = MRI->reg_end(); RI != RE; ) {
MachineOperand &MO = RI.getOperand();
++RI;
MO.setReg(DstReg);
+ assert(MO.getSubReg() == 0);
MO.setSubReg(SrcIdx);
}
}
OpenPOWER on IntegriCloud