Skip to content

Commit

Permalink
Update note regarding LLVM versions for "legacy" pass manager
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFluet committed Mar 15, 2024
1 parent 1351d39 commit 1bc6747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/mlton-script
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if [ -n "$GMP_LIB_DIR" ]; then
gmpLinkOpts="-link-opt -L$GMP_LIB_DIR -target-link-opt netbsd -Wl,-R$GMP_LIB_DIR"
fi

# "Legacy" Pass Manager; LLVM < 13.0
# "Legacy" Pass Manager; LLVM <= 14.0
llvmOptOpt="-mem2reg -O2"
# "New" Pass Manager; LLVM >= 13.0
llvmOptOpt="--passes=function(mem2reg),default<O2>"
Expand Down

0 comments on commit 1bc6747

Please sign in to comment.