Rewriter should definitly rewrite instructions inside bundles.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 19 Jan 2012 07:46:36 +0000 (07:46 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 19 Jan 2012 07:46:36 +0000 (07:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148464 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegMap.cpp

index 4b2bdca30f501d36db3cea0e5905f3e3fab83600..5daa6a7dc15d93b1a3d869804d92f135b3b37861 100644 (file)
@@ -119,8 +119,8 @@ void VirtRegMap::rewrite(SlotIndexes *Indexes) {
   for (MachineFunction::iterator MBBI = MF->begin(), MBBE = MF->end();
        MBBI != MBBE; ++MBBI) {
     DEBUG(MBBI->print(dbgs(), Indexes));
-    for (MachineBasicBlock::iterator MII = MBBI->begin(), MIE = MBBI->end();
-         MII != MIE;) {
+    for (MachineBasicBlock::instr_iterator
+           MII = MBBI->instr_begin(), MIE = MBBI->instr_end(); MII != MIE;) {
       MachineInstr *MI = MII;
       ++MII;