[DebugInfo] Re-enable instruction referencing for x86_64

After discussion in D116821 this was turned off in 74db5c8c95,
14aaaa1236 applied to limit the maximum memory consumption in rare
conditions, plus some performance patches.
This commit is contained in:
Jeremy Morse
2022-02-02 19:17:42 +00:00
parent 30420bc344
commit 6e03a68b77
2 changed files with 5 additions and 4 deletions

View File

@@ -123,6 +123,11 @@ bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) {
}
bool llvm::debuginfoShouldUseDebugInstrRef(const Triple &T) {
// Enable by default on x86_64, disable if explicitly turned off on cmdline.
if (T.getArch() == llvm::Triple::x86_64 &&
ValueTrackingVariableLocations != cl::boolOrDefault::BOU_FALSE)
return true;
// Enable if explicitly requested on command line.
return ValueTrackingVariableLocations == cl::boolOrDefault::BOU_TRUE;
}

View File

@@ -13,10 +13,6 @@
;; by llc by default, and that it can be turned explicitly on or off as
;; desired.
;; Xfail due to faults found in the discussion on
;; https://reviews.llvm.org/D116821
; XFAIL: *
; INSTRREFON: DBG_INSTR_REF
; INSTRREFOFF: DBG_VALUE