[PATCH] D94860: [InstCombine] Optimize select (X == C), (icmp X Y), false

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 16 03:42:42 PST 2021


nikic added a comment.

I think this is a case where being in select form favors us, and we can handle this through a more general transform, rather than the special case that is needed for and/or. The general transform is something along these lines: https://gist.github.com/nikic/4bad7e7e7ecda8d9c9e9633d86836b4d I've wanted to do this for a while, and this looks like a good excuse to make it happen :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94860/new/

https://reviews.llvm.org/D94860



More information about the llvm-commits mailing list