[PATCH] D33338: [InstCombineCasts] Take in account final size when transforming sext->lshr->trunc patterns

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 08:43:52 PDT 2017


spatel added a comment.

In https://reviews.llvm.org/D33338#759474, @davide wrote:

> So what youre suggesting here is to canonicalize and remove this Xform entirely?


Yes - but I acknowledge this may be a longer path than the quick fix of just adding extra predicates to this transform directly to avoid the known bug.

If you think it's better to have the quick fix to avoid the known miscompile, I would support that solution with a FIXME note about trying to get rid of this transform.


https://reviews.llvm.org/D33338





More information about the llvm-commits mailing list