[PATCH] D18936: Fix regalloc-verifier error for r265547

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 11 13:51:12 PDT 2016


qcolombet added inline comments.

================
Comment at: lib/CodeGen/LiveRangeEdit.cpp:166
@@ -151,1 +165,3 @@
+  if (isDeadRemat)
+    RM.OrigMI->getOperand(0).setIsDead(true);
   Rematted.insert(RM.ParentVNI);
----------------
This code feels so wrong.
I am okay if we would have to reset isDead to false for DestReg, since the remat may just clone the input, but we shouldn’t have to do a gymnastic with OrigMI.


Repository:
  rL LLVM

http://reviews.llvm.org/D18936





More information about the llvm-commits mailing list