[PATCH] D64285: [InstCombine] Fold select (icmp sgt x, -1), lshr (X, Y), ashr (X, Y) to ashr (X, Y))

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 05:34:51 PDT 2019


nikic added a comment.

In D64285#1576787 <https://reviews.llvm.org/D64285#1576787>, @lebedev.ri wrote:

> Ugly, yeah, but powerful instsimplify is nice ^^


I feel pretty strongly that this is the not the right tradeoff to make here. Unless there's some specific evidence that we benefit from having this in instsimplify, reducing code duplication is imho much more valuable than making sure that one out of thousands of ad-hoc folds runs in a few more cases than it otherwise would...


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

https://reviews.llvm.org/D64285





More information about the llvm-commits mailing list