[PATCH] D34242: [InstCombine] canonicalize icmp predicate feeding select

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 17 16:33:45 PDT 2017


davide added a comment.

If the goal of this is to expose more opportunities for congruent expressions maybe GVN itself should do this canonicalization, maybe? Some algorithms perform, e.g., reassociation to catch more cases.
See, e.g.
http://www.sable.mcgill.ca/~hendren/621/karthikhandouts.pdf


https://reviews.llvm.org/D34242





More information about the llvm-commits mailing list