[llvm-commits] [llvm] r150564 - /llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Lang Hames lhames at gmail.com
Tue Feb 14 20:33:48 PST 2012


Author: lhames
Date: Tue Feb 14 22:33:48 2012
New Revision: 150564

URL: http://llvm.org/viewvc/llvm-project?rev=150564&view=rev
Log:
Add a check to make sure we don't assign slot indexes for instructions inside bundles.

Modified:
    llvm/trunk/include/llvm/CodeGen/SlotIndexes.h

Modified: llvm/trunk/include/llvm/CodeGen/SlotIndexes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SlotIndexes.h?rev=150564&r1=150563&r2=150564&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SlotIndexes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SlotIndexes.h Tue Feb 14 22:33:48 2012
@@ -648,6 +648,8 @@
     /// instructions, create the new index after the null indexes instead of
     /// before them.
     SlotIndex insertMachineInstrInMaps(MachineInstr *mi, bool Late = false) {
+      assert(!mi->isInsideBundle() &&
+             "Instructions inside bundles should use bundle start's slot.");
       assert(mi2iMap.find(mi) == mi2iMap.end() && "Instr already indexed.");
       // Numbering DBG_VALUE instructions could cause code generation to be
       // affected by debug information.





More information about the llvm-commits mailing list