Skip to content

Commit

Permalink
Fixed compiler optimization problems
Browse files Browse the repository at this point in the history
- Disabled tree-loop-distribute-patterns, builtin-memcpy, builtin-memset
  • Loading branch information
Xeratec authored and suehtamacv committed Dec 28, 2022
1 parent cab9819 commit 024e120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/runtime/runtime.mk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ RISCV_LLVM_TARGET ?= --target=$(RISCV_TARGET) --sysroot=$(GCC_INSTALL_DIR)/$(RI

RISCV_WARNINGS += -Wunused-variable -Wconversion -Wall -Wextra # -Werror
RISCV_FLAGS_COMMON_TESTS ?= -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -I$(ROOT_DIR) -I$(HALIDE_INCLUDE) -static
RISCV_FLAGS_COMMON ?= $(RISCV_FLAGS_COMMON_TESTS) -g -std=gnu99 -O3 -ffast-math -fno-common -fno-builtin-printf $(DEFINES) $(RISCV_WARNINGS)
RISCV_FLAGS_COMMON ?= $(RISCV_FLAGS_COMMON_TESTS) -g -std=gnu99 -O3 -fno-tree-loop-distribute-patterns -fno-builtin-memcpy -fno-builtin-memset -ffast-math -fno-common -fno-builtin-printf $(DEFINES) $(RISCV_WARNINGS)
RISCV_FLAGS_GCC ?= -mcmodel=medany -Wa,-march=$(RISCV_ARCH_AS) -mtune=mempool # -falign-loops=32 -falign-jumps=32
RISCV_FLAGS_LLVM ?= -mcmodel=small -mcpu=mempool-rv32 -mllvm -misched-topdown

Expand Down

0 comments on commit 024e120

Please sign in to comment.