[LLVMdev] i1 promotion issue (again)

Eli Friedman eli.friedman at gmail.com
Fri Dec 12 20:55:42 PST 2008


On Fri, Dec 12, 2008 at 5:52 PM, Scott Michel <scottm at aero.org> wrote:
> ComputeNumSignBits() is never called.

That seems very weird... the DAG combiner will always call
ComputeNumSignBits on any sext_in_reg.  Also, the only way I can think
of that you're getting an sext_in_reg in this situation is that
PromoteIntOp_BRCOND is creating it, and it should call
ComputeNumSignBits in that case.

Also, I just tried out a branch with the CellSPU backend in trunk
LLVM, and I didn't see the sext_in_reg; is there something I'm
missing, or are there some relevant changes in your tree you haven't
committed yet?

-Eli



More information about the llvm-dev mailing list