Reapply D146987 "[Assignment Tracking] Enable by default"
authorOCHyams <orlando.hyams@sony.com>
Fri, 28 Apr 2023 08:43:50 +0000 (09:43 +0100)
committerOCHyams <orlando.hyams@sony.com>
Fri, 28 Apr 2023 10:34:53 +0000 (11:34 +0100)
commit8dec295af0352fccb5825dc08e4ec21cb9ffe010
treeeb416689420833df41749ed3e9f4b9f34b397247
parent578b2a36b6756f91e3e22d967f98efb5ff090d25
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 0ba922f600469df273c753f873668e41025487c0 which reverts
https://reviews.llvm.org/D146987
clang/include/clang/Driver/Options.td
clang/test/CodeGen/assignment-tracking/flag.cpp