Set NextMII after issuing a physical register spill.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 12 Mar 2008 00:14:07 +0000 (00:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 12 Mar 2008 00:14:07 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48263 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegMap.cpp

index cabc6badd8a5e0394abe860e6d736e76c59564e6..9e46c001bfa73e027fd0c7fd25b8627ab28f2ec7 100644 (file)
@@ -1082,6 +1082,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
         VRM.addSpillSlotUse(SS, LoadMI);
         ++NumPSpills;
       }
+      NextMII = next(MII);
     }
 
     // Insert restores here if asked to.