[PATCH] D20774: [InstCombine] look through bitcasts to find selects

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 11:27:11 PDT 2016


spatel added a comment.

In http://reviews.llvm.org/D20774#446452, @spatel wrote:

> We're trading 4 logic ops, a bitcast, and a sext for a select. Is that better / more canonical IR for all targets?


I can answer my own question with a 'yes'. We already have this transform in matchSelectFromAndOr(). It looks like it just needs to be enhanced to see through the bitcasts.


http://reviews.llvm.org/D20774





More information about the llvm-commits mailing list