Skip to content

Rename --llvm-opt-flags to --llvm-opt-level#92

Open
byeongjee wants to merge 1 commit intomainfrom
worktree-warm-imagining-walrus
Open

Rename --llvm-opt-flags to --llvm-opt-level#92
byeongjee wants to merge 1 commit intomainfrom
worktree-warm-imagining-walrus

Conversation

@byeongjee
Copy link
Copy Markdown
Collaborator

Summary

  • The LLVM optimization level was hardcoded to -O3 in compile.sh's opt invocation, while --llvm-opt-flags only controlled llc
  • Renamed --llvm-opt-flags to --llvm-opt-level (default: O3) and applied it consistently to both opt and llc
  • Updated run.sh, gencmds.py, validate_small_correctness.py, and README.md to match

Test plan

  • Run ./toolchain/compile.sh -i <file> -o out --compiler=llvm (uses default O3)
  • Run ./toolchain/compile.sh -i <file> -o out --compiler=llvm --llvm-opt-level=O0 (verify O0 is used for both opt and llc)
  • Run ./validate_small_correctness.py --llvm-opt-level=O3

The LLVM optimization level was hardcoded to -O3 in compile.sh's `opt`
invocation. Rename --llvm-opt-flags to --llvm-opt-level (default: O3)
and apply it consistently to both `opt` and `llc`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant