[llvm] r219832 - InstCombine: Narrow switch instructions using known bits.

Akira Hatanaka ahatanak at gmail.com
Wed Oct 15 23:16:40 PDT 2014


Thanks for the test case. I committed a fix in r219902.

It was asserting when APInt::getZExtValue was called on an APInt wider than
64-bit. I changed the code to use APInt::trunc instead.

On Wed, Oct 15, 2014 at 6:14 PM, Joerg Sonnenberger <joerg at britannica.bec.de
> wrote:

> On Wed, Oct 15, 2014 at 07:05:51PM -0000, Akira Hatanaka wrote:
> > Author: ahatanak
> > Date: Wed Oct 15 14:05:50 2014
> > New Revision: 219832
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=219832&view=rev
> > Log:
> > InstCombine: Narrow switch instructions using known bits.
>
> This asserts on the attached code when compiled with -O2. Please fix or
> revert.
>
> Joerg
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141015/3a9d8e68/attachment.html>


More information about the llvm-commits mailing list