[PATCH] D80665: [MachineLICM] Assert that locations from debug insts are not lost
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 28 14:19:56 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0aa201eaf976: [MachineLICM] Assert that locations from debug insts are not lost (authored by vsk).
Changed prior to commit:
https://reviews.llvm.org/D80665?vs=266670&id=267037#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80665/new/
https://reviews.llvm.org/D80665
Files:
llvm/lib/CodeGen/MachineLICM.cpp
Index: llvm/lib/CodeGen/MachineLICM.cpp
===================================================================
--- llvm/lib/CodeGen/MachineLICM.cpp
+++ llvm/lib/CodeGen/MachineLICM.cpp
@@ -638,6 +638,7 @@
// Since we are moving the instruction out of its basic block, we do not
// retain its debug location. Doing so would degrade the debugging
// experience and adversely affect the accuracy of profiling information.
+ assert(!MI->isDebugInstr() && "Should not hoist debug inst");
MI->setDebugLoc(DebugLoc());
// Add register to livein list to all the BBs in the current loop since a
@@ -841,6 +842,7 @@
// The instruction is is moved from its basic block, so do not retain the
// debug information.
+ assert(!I->isDebugInstr() && "Should not sink debug inst");
I->setDebugLoc(DebugLoc());
}
}
@@ -1536,6 +1538,7 @@
// Since we are moving the instruction out of its basic block, we do not
// retain its debug location. Doing so would degrade the debugging
// experience and adversely affect the accuracy of profiling information.
+ assert(!MI->isDebugInstr() && "Should not hoist debug inst");
MI->setDebugLoc(DebugLoc());
// Update register pressure for BBs from header to this block.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80665.267037.patch
Type: text/x-patch
Size: 1257 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/514acae4/attachment.bin>
More information about the llvm-commits
mailing list