[PATCH] D69889: [DebugInfo] Avoid creating entry values for clobbered registers
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 17:41:43 PST 2019
aprantl added inline comments.
================
Comment at: llvm/lib/CodeGen/LiveDebugValues.cpp:1253
+/// Collect all register defines (including aliases) for the given instruction.
+static void collectRegDefs(const MachineInstr &MI, SmallSet<Register, 32> &Regs,
+ const TargetRegisterInfo *TRI) {
----------------
I assume you checked that such a helper doesn't already exist?
================
Comment at: llvm/lib/CodeGen/LiveDebugValues.cpp:1353
+ // entry value.
+ if (DefinedRegs.count(MI.getOperand(0).getReg()))
+ return false;
----------------
I'm assuming this is IsEntryValueCandidate()? There's no context..
So we're saying any DBG_VALUE using a register that has been defined in the entry block is not an entry value candidate?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69889/new/
https://reviews.llvm.org/D69889
More information about the llvm-commits
mailing list