Skip to content

Commit ba82f26

Browse files
committed
IRGen: Avoid generating LLVM switches when brs will do.
FastISel doesn't like switch, and it's generally more compact code gen to build conditionals for two-target branches instead of switching all the time. There are many popular two-tag enums (Optional, someday Bool, Either) and this should greatly improve the potential for FastISel to kick in at -Onone.
1 parent b884698 commit ba82f26

File tree

4 files changed

+390
-73
lines changed

4 files changed

+390
-73
lines changed

0 commit comments

Comments
 (0)