Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Add -fno-code-hoisting to reduce register pressure for coremark.
Browse files Browse the repository at this point in the history
The register pressure of function core_bench_state is too high to do
LICM (Loop Invariant Code Motion). The one of reason is GCC hoists too
many instructions. The option -fno-code-hoisting can disable this
optimization and reduce the register pressure.
  • Loading branch information
Mel-Chen committed Jul 24, 2020
1 parent 125d96e commit 2204edb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/standalone.mk
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ RISCV_XCFLAGS += -O2 -fno-common -funroll-loops -finline-functions -falign-funct
else
RISCV_XCFLAGS += -O2 -fno-common -funroll-loops -finline-functions -falign-functions=16 -falign-jumps=4 -falign-loops=4 -finline-limit=1000 -fno-if-conversion2 -fselective-scheduling -fno-tree-dominator-opts
endif # RISCV_XLEN==32
RISCV_XCFLAGS += -fno-code-hoisting
endif # RISCV_SERIES==sifive-7-series|sifive-8-series
RISCV_XCFLAGS += -DITERATIONS=$(TARGET_CORE_ITERS)
ifeq ($(GCC_VER_GTE10),1)
Expand Down

0 comments on commit 2204edb

Please sign in to comment.