[llvm-commits] [llvm] r163302 - in /llvm/trunk: lib/Transforms/Utils/SimplifyCFG.cpp test/Transforms/SimplifyCFG/switch_create.ll test/Transforms/SimplifyCFG/switch_to_lookup_table.ll

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Oct 3 13:46:11 PDT 2012


> One pain is that all kinds of conditional logic optimizations have to be
> duplicated between "branch on condition" type code, and select.  There are a
> couple of PR's about missed optimization on select that wouldn't have been
> missed if select didn't exist, because they are handled in the branch case.

One option would be to canonicalize to select only when the values
being selected are constants. I think this would avoid the missed
optimizations, and hopefully not bloat the IR too much.

> Ciao, Duncan.

Cheers,
Rafael



More information about the llvm-commits mailing list