[LLVMdev] i1 promotion issue (again)

Eli Friedman eli.friedman at gmail.com
Fri Dec 12 11:55:06 PST 2008


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.

-Eli



More information about the llvm-dev mailing list