Skip to content

Commit

Permalink
Enabled frame pointer elimination by default, for llc (#1324)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
saiislam authored and amd-aakash committed Dec 11, 2019
1 parent 38c1491 commit 75ea952
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/clamp-device.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ KMOPTOPT="${KMOPTOPT:="-O3"}"

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

# enable LLVM hijacking
KMHACKLLVM="${KMHACKLLVM:=0}"
Expand Down

0 comments on commit 75ea952

Please sign in to comment.