Skip to content

Commit b74aeac

Browse files
committed
Reapply D146987 "[Assignment Tracking] Enable by default"
See https://discourse.llvm.org/t/rfc-enable-assignment-tracking/69399 This sets the -Xclang -fexperimental-assignment-tracking flag to the value enabled which means it will be enabled so long as none of the following are true: it's an LTO build, LLDB debugger tuning has been specified, or it's an O0 build (no work is done in any case if -g is not specified or -gmlt is used). This reverts commit a65ca45 which reverts https://reviews.llvm.org/D146987
1 parent 4bc6499 commit b74aeac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5817,7 +5817,7 @@ def fexperimental_assignment_tracking_EQ : Joined<["-"], "fexperimental-assignme
58175817
Group<f_Group>, CodeGenOpts<"EnableAssignmentTracking">,
58185818
NormalizedValuesScope<"CodeGenOptions::AssignmentTrackingOpts">,
58195819
Values<"disabled,enabled,forced">, NormalizedValues<["Disabled","Enabled","Forced"]>,
5820-
MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Disabled">;
5820+
MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Enabled">;
58215821

58225822
} // let Flags = [CC1Option, NoDriverOption]
58235823

clang/test/CodeGen/assignment-tracking/flag.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// RUN: -emit-llvm %s -o - -fexperimental-assignment-tracking=disabled -O1\
99
// RUN: | FileCheck %s --check-prefixes=DISABLE
1010

11-
//// Disabled by default:
11+
//// Enabled by default:
1212
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
1313
// RUN: -emit-llvm %s -o - -O1 \
14-
// RUN: | FileCheck %s --check-prefixes=DISABLE
14+
// RUN: | FileCheck %s --check-prefixes=ENABLE
1515

1616
//// Disabled at O0 unless forced.
1717
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \

0 commit comments

Comments
 (0)