This patch adds the commandline option -mips-compact-branches={never,optimal,always),
which controls how LLVM generates compact branches for MIPS targets. By
default, the compact branch policy is 'optimal' where LLVM will (hopefully)
pick the optimal branch for any situation. The 'never' policy will disable
the generation of compact branches and 'always' will generate compact branches
wherever possible.
Details
Details
- Reviewers
dsanders
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM with a couple nits
lib/Target/Mips/MipsDelaySlotFiller.cpp | ||
---|---|---|
66–68 | We should mention that never/always aren't absolute in a doxygen comment. Also an optional nit: We don't have any rules about it but most enumerators seem to separate the prefix from the name using an underscore (e.g. 'CB_Never') | |
test/CodeGen/Mips/compactbranches/compact-branch-policy.ll | ||
13 | Could you add a comment indicating why the ALWAYS case has one? |
We should mention that never/always aren't absolute in a doxygen comment.
Also an optional nit: We don't have any rules about it but most enumerators seem to separate the prefix from the name using an underscore (e.g. 'CB_Never')