Patch for bundled instructions in LiveIntervalsAnalysis

Stephen Rogers via llvm-commits llvm-commits at
Tue Mar 15 07:04:09 PDT 2016

Hi all,

Attached is a patch I have made to the function "LiveIntervals::handleMove"
in "lib/CodeGen/LiveIntervalAnalysis.cpp". I have changed the assertion on "
!MI.isBundled()" to "!MI->isInsideBundle()" since it is possible (and
necessary) to handle the move of a bundle header instruction. This is
necessary for updating the live intervals of bundled instructions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
Index: lib/CodeGen/LiveIntervalAnalysis.cpp
--- lib/CodeGen/LiveIntervalAnalysis.cpp	(revision 263547)
+++ lib/CodeGen/LiveIntervalAnalysis.cpp	(working copy)
@@ -1391,7 +1391,7 @@
 void LiveIntervals::handleMove(MachineInstr &MI, bool UpdateFlags) {
-  assert(!MI.isBundled() && "Can't handle bundled instructions yet.");
+  assert(!MI.isInsideBundle() && "Cannot handle instructions inside bundles.");
   SlotIndex OldIndex = Indexes->getInstructionIndex(MI);
   SlotIndex NewIndex = Indexes->insertMachineInstrInMaps(MI);

More information about the llvm-commits mailing list