Skip to content

Commit 75ea952

Browse files
saiislamamd-aakash
authored andcommitted
Enabled frame pointer elimination by default, for llc (#1324)
* Enabled frame pointer elimination by default, for llc A few saved registers thus can be used for SGPR spill. * Removed "-O2" from default argument list of KMOPTLLC becasue it will be anyways overwritten by "-O3" in HCC_OPT later. Change-Id: Ifc40f6190122f042e999a29c3c6831c509f079ed
1 parent 38c1491 commit 75ea952

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/clamp-device.in

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ KMOPTOPT="${KMOPTOPT:="-O3"}"
2828

2929
# pass extra options to LLC
3030
# KMOPTLLC can be used to pass last-minute options to llc in the backend
31-
# if not set, then "-O2" will be passed to llc
32-
KMOPTLLC="${KMOPTLLC:="-O2"}"
31+
# add "--frame-pointer=none" as deafult option to llc to enable frame
32+
# pointer elimination, so saved registers can be used for SGPR spill
33+
KMOPTLLC="${KMOPTLLC:="--frame-pointer=none"}"
3334

3435
# enable LLVM hijacking
3536
KMHACKLLVM="${KMHACKLLVM:=0}"

0 commit comments

Comments
 (0)