[PATCH] D28337: [InstSimplify] if the condition of a select is known, eliminate the select

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 15:45:59 PST 2017


efriedma added a comment.

Another option is to handle this in EarlyCSE; we already do a very similar optimization there for branches.

Another option is to do this in instcombine.


https://reviews.llvm.org/D28337





More information about the llvm-commits mailing list