[llvm] [DebugInfo][RemoveDIs] Handle non-instr debug-info in GlobalISel (PR #75228)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 07:47:03 PST 2023
================
@@ -162,7 +162,8 @@ class DILocationVerifier : public GISelChangeObserver {
// they could have originated from constants, and we don't want a jumpy
// debug experience.
assert((CurrInst->getDebugLoc() == MI.getDebugLoc() ||
- (MI.getParent()->isEntryBlock() && !MI.getDebugLoc())) &&
+ (MI.getParent()->isEntryBlock() && !MI.getDebugLoc()) ||
+ (MI.isDebugInstr())) &&
----------------
jmorse wrote:
Good point; we should only open a gap in this check for the things that are absolutely necessary, I'll refine it.
https://github.com/llvm/llvm-project/pull/75228
More information about the llvm-commits
mailing list