[PATCH] D91064: [MachineBasicBlock] Fix update of live intervals in splitAt

Carl Ritson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 03:02:22 PST 2020


critson created this revision.
critson added reviewers: arsenm, MaskRay.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
critson requested review of this revision.
Herald added a subscriber: wdng.

In splitAt the wrong insertion point is passed to insertMBBInMaps.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91064

Files:
  llvm/lib/CodeGen/MachineBasicBlock.cpp


Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
===================================================================
--- llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp
@@ -984,7 +984,7 @@
     addLiveIns(*SplitBB, LiveRegs);
 
   if (LIS)
-    LIS->insertMBBInMaps(SplitBB, &MI);
+    LIS->insertMBBInMaps(SplitBB, &*SplitPoint);
 
   return SplitBB;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91064.303804.patch
Type: text/x-patch
Size: 386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201109/fcba4e21/attachment.bin>


More information about the llvm-commits mailing list