Skip to content

Commit

Permalink
Revert rG6a605b97a200 due to excessive memory use
Browse files Browse the repository at this point in the history
Over in the comments for D116821, some use-cases have cropped up where
there's a substantial increase in memory usage. A quick inspection
shows that a) it's a lot of memory and b) there are several things to
be done to reduce it. Reverting (via disabling this feature by default)
to avoid bothering people in the meantime.
  • Loading branch information
jmorse committed Jan 24, 2022
1 parent 80532eb commit 74db5c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,13 @@ bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) {

bool llvm::debuginfoShouldUseDebugInstrRef(const Triple &T) {
// Enable by default on x86_64, disable if explicitly turned off on cmdline.
// Disabled while https://reviews.llvm.org/D116821 is investigated.
#if 0
if (T.getArch() == llvm::Triple::x86_64 &&
ValueTrackingVariableLocations != cl::boolOrDefault::BOU_FALSE)
return true;
#endif

// Otherwise: enable if explicitly requestedo n command line.
// Otherwise: enable if explicitly requested on command line.
return ValueTrackingVariableLocations == cl::boolOrDefault::BOU_TRUE;
}
4 changes: 4 additions & 0 deletions llvm/test/DebugInfo/X86/instr-ref-flag.ll
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
;; 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

Expand Down

0 comments on commit 74db5c8

Please sign in to comment.