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

Commit 798f5d2e authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Enable MLGO for register allocation" into main

parents e56803d7 67a2dee8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -140,6 +140,9 @@ var (
		"-Werror=format-security",
		"-nostdlibinc",

		// Enable MLGO for register allocation.
		"-mllvm -regalloc-enable-advisor=release",

		// Emit additional debug info for AutoFDO
		"-fdebug-info-for-profiling",
	}
@@ -167,6 +170,8 @@ var (
		"-Wl,--exclude-libs,libgcc_stripped.a",
		"-Wl,--exclude-libs,libunwind_llvm.a",
		"-Wl,--exclude-libs,libunwind.a",
		// Enable MLGO for register allocation.
		"-Wl,-mllvm,-regalloc-enable-advisor=release",
	}

	deviceGlobalLldflags = append(deviceGlobalLdflags, commonGlobalLldflags...)