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

Chris Lattner clattner at apple.com
Fri Oct 26 11:31:02 PDT 2012


On Oct 25, 2012, at 10:52 AM, JF Bastien <jfb at google.com> wrote:

> 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.

LGTM,

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121026/ca90e871/attachment.html>


More information about the llvm-commits mailing list