[LLVMdev] Custom Lowering and fneg

Eli Friedman eli.friedman at gmail.com
Tue Sep 16 17:23:38 PDT 2008


On Tue, Sep 16, 2008 at 5:22 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Tue, Sep 16, 2008 at 3:43 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
>> Eli,
>>  I've been working on this for a few days and still haven't gotten this
>> towork. I've attached my dags that you asked for, and even there it is
>> turning the floating point instruction into an integer return value.
>
> Hmm, that's kind of strange... in that case, there's very little space
> for it to get messed up.  Could you try setting a breakpoint in
> "llvm::SelectionDAG::getNode(unsigned Opcode, MVT VT, SDValue
> Operand)" and seeing where the fneg in question is built?

Bleh, sorry.., that isn't clear.  It's the single-operand variant of
SelectionDAG::getNode in
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp.

-Eli



More information about the llvm-dev mailing list