Displaying 2 results from an estimated 2 matches for "getcostfor".
2014 Aug 31
2
[LLVMdev] understanding DAG: node creation
Hi,
Yes, that's what I would do. If you want LLVM and the register allocator to also know that the instruction explicitly defines the register, I would designate the register into it's own register class and have your instruction write to that class (and there will be only a single option for RA).
cheers,
Sam
Sam Parker
Research Student
Electronic Systems Design Group
Loughborough
2014 Sep 01
3
[LLVMdev] understanding DAG: node creation
...http://goo.gl/62tpkk), but everything goes broken on
> scheduling.
>
> I had to chain mine nodes, because otherwise nodes xmac and srxacc got
> removed on first combine. But since they are chained, they have
> MVT::Other return type, and that causes strange crash inside func
> GetCostFor in ScheduleDAGRRList.cpp:
>
> Def RegClass = TLI->getRepRegClassFor(VT)->getID();
> When VT is MVT::Other it returns 0x0, what results crash.
>
> It got me confused, because reading documentation on CodeGen gave me
> an idea, that chain edges are control flow edges, not dat...