aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Phillips <mitchp@google.com>2020-06-22 13:28:23 -0700
committerMitch Phillips <mitchp@google.com>2020-06-30 17:35:56 +0000
commitb1c574fd13bf6942399c62ffd906c3c6042c8e14 (patch)
tree1ea91232c8452fc8713c51b538a82be7e6ba018d
parent42ffc3f0002d64d82449485dfb6572140d268d49 (diff)
downloadbuild_soong-b1c574fd13bf6942399c62ffd906c3c6042c8e14.tar.gz
build_soong-b1c574fd13bf6942399c62ffd906c3c6042c8e14.tar.bz2
build_soong-b1c574fd13bf6942399c62ffd906c3c6042c8e14.zip
[HWASan] Disable GlobalISel/FastISel w/ HWASan.
Bug: 159343917 Test: See upstream testing at https://reviews.llvm.org/D82249 Change-Id: Ib644a857caa048d7fc3dd5e5f20553e0b4a47d43
-rw-r--r--cc/sanitize.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/sanitize.go b/cc/sanitize.go
index 371f2708..463a02ac 100644
--- a/cc/sanitize.go
+++ b/cc/sanitize.go
@@ -48,6 +48,10 @@ var (
// higher number of "optimized out" stack variables.
// b/112437883.
"-mllvm", "-instcombine-lower-dbg-declare=0",
+ // TODO(b/159343917): HWASan and GlobalISel don't play nicely, and
+ // GlobalISel is the default at -O0 on aarch64.
+ "-mllvm", "--aarch64-enable-global-isel-at-O=-1",
+ "-mllvm", "-fast-isel=false",
}
cfiCflags = []string{"-flto", "-fsanitize-cfi-cross-dso",