[PATCH] [CodeGen] Annotate signed shift lefts with NUW

Richard Smith richard at metafoo.co.uk
Wed Apr 8 13:13:11 PDT 2015


On Wed, Apr 8, 2015 at 11:42 AM, Chandler Carruth <chandlerc at gmail.com>
wrote:

> Before we go here, I think we should seriously ask whether we want to undo
> that restriction on shift left.
>
> I can see arguments both for and against it.
>
> Does GCC already do this optimization?


I've not found any evidence that GCC optimizes on the assumption that the
LHS of a signed left shift is not negative.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150408/4eeb9cf0/attachment.html>


More information about the cfe-commits mailing list