[PATCH] D68209: [LiveDebugValues] Introduce entry values of unmodified params

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 12:42:28 PST 2019


aprantl added a comment.

I was wondering if it would make sense to let LiveDebugValues compute all available locations, and then have DbgEntityHistoryCalculator pick the best one (e.g., prefer anything over an entry value). The downside of that approach is that we'd need to reimplement some of DbgEntityHistoryCalculator in LiveDebugValues for this to work: For example whether DBG_VALUE should truncate a previous DBG_VALUE's range (e.g, if the previous one was constant) or whether it is an alternative location (such as, if a register is copied). I'm not saying that we need to do this now. But it is something we could evolve LiveDebugValues towards.



================
Comment at: llvm/lib/CodeGen/LiveDebugValues.cpp:92
 
+static bool isRegOtherThanSPAndFP(const MachineOperand &Op, MachineInstr &MI,
+                                  const TargetRegisterInfo *TRI) {
----------------
Can you adda a /// comment that explains, why this is useful / why a caller might want to know this?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68209/new/

https://reviews.llvm.org/D68209





More information about the llvm-commits mailing list