[cfe-dev] Why no NSW/NUW with SHL instruction?

Ryan Taylor ryta1203 at gmail.com
Wed Nov 19 10:32:12 PST 2014

I'm curious why there is not always a nsw/nuw flag with shl instruction?
For example, I have a signed int I'm shifting left (want to generate an
arithmetic left shift in backend for signed int shift lefts and logical for
unsigned, at the moment).... but shl on a signed int does not always have
nsw/nuw flag present, why is this?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141119/6cc1599c/attachment.html>

More information about the cfe-dev mailing list