[LLVMdev] i1 promotion issue (again)

Eli Friedman
Fri, 12 Dec 2008 19:59:04 -0000

On Fri, Dec 12, 2008 at 11:55 AM, Eli Friedman <eli.friedman at gmail.com>
wrote:
> On Fri, Dec 12, 2008 at 11:42 AM, Scott Michel <scottm at aero.org>
wrote:
>> The alternative is to do fairly deep inspection of brconds to eliminate
the
>> truncate, which eventually gets expanded into:
>> (i8:sext_in_reg (i8:truncate (i32:setcc ...)))
>
> Have you tried implementing computeMaskedBitsForTargetNode for your
> setcc nodes?  If you have, I think DAGCombiner should take care of the
> necessary simplification.

Umm, make that ComputeNumSignBitsForTargetNode.

-Eli