aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCamil Staps2021-01-08 11:38:53 +0100
committerCamil Staps2021-01-08 11:38:53 +0100
commitddd7381828ef7c791867917f2eb32e9cba66079f (patch)
treef276b2827f310974befe2e035271dc11fb38e4ad /Makefile
parentAdd annotations in nfib_nsa (diff)
WIP: cleanup global A stack after evaluation in jsr_eval
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e30c528..27a0c15 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,12 @@ $(BC): %.bc: %.opt.ll
llvm-as-11 $^ -o $@
$(OPTLL): %.opt.ll: $(DEPS) %.ll
- cat $^ | opt-11 -S -O3 -o $@
+ cat $^ \
+ | opt-11 -S -always-inline \
+ | opt-11 -S -O3 \
+ | sed 's/noinline nounwind optnone/nounwind/' \
+ | opt-11 -S -O3 \
+ -o $@
clean:
$(RM) $(BIN) $(OBJ) $(ASM) $(BC)