[llvm-commits] [llvm] r150552 - in /llvm/trunk: include/llvm/CodeGen/LiveIntervalAnalysis.h lib/CodeGen/LiveIntervalAnalysis.cpp lib/CodeGen/MachineScheduler.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Wed Feb 15 09:33:45 PST 2012
On Feb 14, 2012, at 5:23 PM, Lang Hames <lhames at gmail.com> wrote:
> SlotIndex origIdx = indexes_->getInstructionIndex(mi);
> + MachineBasicBlock* mbb = mi->getParent();
> +
> + assert(getMBBFromIndex(origIdx) == mbb &&
> + "Cannot handle moves across basic block boundaries.");
That assert probably doesn't do what you want. From SlotIndexes.h:
MachineBasicBlock* getMBBFromIndex(SlotIndex index) const {
if (MachineInstr *MI = getInstructionFromIndex(index))
return MI->getParent();
You could use getMBBRange() instead.
/jakob
More information about the llvm-commits
mailing list