[llvm-commits] [PATCH] Stop APInt::shl from generating llvm.trap

JF Bastien jfb at google.com
Thu Oct 25 10:52:37 PDT 2012


Hi,

APInt::shl generated llvm.trap to guard against shifts greater than
bit-width. This was already checked with an assert, and there was a special
case for shifts equal to bit-width. Modify this check to catch shifts
greater than or equal to bit-width, so llvm.trap isn't generated.

Please review this one-character-change patch.

Thanks,

JF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121025/b2f60f2a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apint-shl.diff
Type: application/octet-stream
Size: 503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121025/b2f60f2a/attachment.obj>


More information about the llvm-commits mailing list