Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53768927 authored by Pirama Arumuga Nainar's avatar Pirama Arumuga Nainar
Browse files

[riscv64] disable vectorizer during LTO

With LTO, vectorization needs to be disabled separately in the linker flags as well.

Change-Id: I71d813974a9b7a40954d3dab5b1704baed610fd0
parent ed0e3cd9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ var (
		// Equivalent to "-munaligned-access", but our clang doesn't have that yet.
		"-Xclang -target-feature -Xclang +unaligned-scalar-mem",
		"-Xclang -target-feature -Xclang +unaligned-vector-mem",
		// Until https://gitlab.com/qemu-project/qemu/-/issues/1976 is fixed...
		"-Wl,-mllvm,-vectorize-loops=false",
		// We should change the default for this in clang, but for now...
		// (https://github.com/google/android-riscv64/issues/124)
		"-Wl,-mllvm -Wl,-jump-is-expensive=false",