[PATCH] D105025: [1/2][LiveDebugVariables] Avoid reduntant DBG_VALUEs after virtregrewrite
Orlando Cazalet-Hyams via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 28 08:03:56 PDT 2021
Orlando added inline comments.
================
Comment at: llvm/test/DebugInfo/X86/livedebugvars-avoid-duplicates.ll:4
+
+; RUN: llc -O2 %s -stop-before=livedebugvalues -o - | FileCheck %s
+
----------------
djtodoro wrote:
> jmorse wrote:
> > This is running quite a lot of llc, to then hit a fair specific scenario (DBG_VALUE then frame-setup), which makes me worry that it'll be fragile. Would it be sufficient to just check that there are two DBG_VALUEs in the output MIR, and that's it?
> >
> > (Also, hard-coded metadata numbers)
> yep, I'll need to fix it
You could add `--implicit-check-not=DBG_VALUE` to `FileCheck` here too to ensure there are no extra DBG_VALUEs?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105025/new/
https://reviews.llvm.org/D105025
More information about the llvm-commits
mailing list