Add a flag for pattern initialization
Add the flag so we can turn on pattern initialization from https://reviews.llvm.org/D54604 in the future. Bug: 966551 Change-Id: I631bd71f5e1da553ec7a9e480537adc8573d1047 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1835027 Commit-Queue: Jian Cai <jiancai@google.com> Reviewed-by: Dirk Pranke <dpranke@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#721174} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: e8d1746114d27375f9f456cf4395680783292745
This commit is contained in:
Родитель
02a6c88f23
Коммит
e35470d982
|
@ -11,6 +11,9 @@ declare_args() {
|
|||
# https://research.fb.com/wp-content/uploads/2017/01/cgo2017-hfsort-final1.pdf?
|
||||
# to a file, used for generating orderfiles in Chrome OS
|
||||
dump_call_chain_clustering_order = ""
|
||||
|
||||
# Enable pattern initialization. Disabled by default. http://crbug.com/966551
|
||||
enable_pattern_initialization = false
|
||||
}
|
||||
|
||||
declare_args() {
|
||||
|
@ -31,4 +34,8 @@ config("compiler") {
|
|||
cflags = [ "-fexperimental-new-pass-manager" ]
|
||||
ldflags = [ "-fexperimental-new-pass-manager" ]
|
||||
}
|
||||
|
||||
if (enable_pattern_initialization) {
|
||||
cflags = [ "-ftrivial-auto-var-init=pattern" ]
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче