[llvm-commits] [patch] Use the range metadata in CodeGen

Chandler Carruth chandlerc at google.com
Mon Apr 9 08:51:38 PDT 2012


On Mon, Apr 9, 2012 at 5:46 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com
> wrote:

> > A rebased version is attached.
>
> And a rebase without the helper function is attached.
>

Discussed on IRC, but in summary:

I think the much simpler code is the right approach here. I had hoped for
some generalization to emerge, but it's just not there. We really want to
detect "trunc to i1" when it is phrased as an icmp. The code does that now.

I've asked for making the ISD::TRUNCATE case a single early-exit block, and
comments documinging what all is going on here. With that, LGTM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120409/1158689d/attachment.html>


More information about the llvm-commits mailing list