[clang] f11e147 - Reapply (2) "[Assignment Tracking] Enable by default"
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 9 02:02:50 PDT 2023
Author: OCHyams
Date: 2023-04-09T09:59:26+01:00
New Revision: f11e1475c97c1ba6b418838f3592de930677c3d0
URL: https://github.com/llvm/llvm-project/commit/f11e1475c97c1ba6b418838f3592de930677c3d0
DIFF: https://github.com/llvm/llvm-project/commit/f11e1475c97c1ba6b418838f3592de930677c3d0.diff
LOG: Reapply (2) "[Assignment Tracking] Enable by default"
Re-land D146987.
This reverts commit 64fba207a683a355d9059cd57adb8a139c2f5dda
which reverts D146987.
Added:
Modified:
clang/include/clang/Driver/Options.td
clang/test/CodeGen/assignment-tracking/flag.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 5e008fc9b26ee..0e3c7b708071f 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -5815,7 +5815,7 @@ def experimental_assignment_tracking_EQ : Joined<["-"], "fexperimental-assignmen
Group<f_Group>, CodeGenOpts<"EnableAssignmentTracking">,
NormalizedValuesScope<"CodeGenOptions::AssignmentTrackingOpts">,
Values<"disabled,enabled,forced">, NormalizedValues<["Disabled","Enabled","Forced"]>,
- MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Disabled">;
+ MarshallingInfoEnum<CodeGenOpts<"AssignmentTrackingMode">, "Enabled">;
} // let Flags = [CC1Option, NoDriverOption]
diff --git a/clang/test/CodeGen/assignment-tracking/flag.cpp b/clang/test/CodeGen/assignment-tracking/flag.cpp
index aa1f054dae4d7..3bd974fe07c6c 100644
--- a/clang/test/CodeGen/assignment-tracking/flag.cpp
+++ b/clang/test/CodeGen/assignment-tracking/flag.cpp
@@ -8,10 +8,10 @@
// RUN: -emit-llvm %s -o - -fexperimental-assignment-tracking=disabled -O1\
// RUN: | FileCheck %s --check-prefixes=DISABLE
-//// Disabled by default:
+//// Enabled by default:
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
// RUN: -emit-llvm %s -o - -O1 \
-// RUN: | FileCheck %s --check-prefixes=DISABLE
+// RUN: | FileCheck %s --check-prefixes=ENABLE
//// Disabled at O0 unless forced.
// RUN: %clang_cc1 -triple x86_64-none-linux-gnu -debug-info-kind=standalone \
More information about the cfe-commits
mailing list