[LLVMdev] hazard scheduling nodes

Jonas Paulsson jonas.paulsson at ericsson.com
Thu Feb 21 09:11:38 PST 2013


Hi,

I am trying to add Hazard scheduling nodes after buildSchedGraph(), with a scheduler derived from ScheduleDAGInstrs. I get weird errors, so I wonder what I am doing wrong?

What I am doing right now is:

I have a created MI with opcode HAZARD that does not have parent, and I greate a SUnit(HazardMI). I use this one HazardMI for all hazard nodes.
I remove all edges using removePred.
I insert edges between Node -> hazardNode -> pred.

What is there to think about in this approach? I must be missing some detail...

Any help is appreciated,

Jonas Paulsson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130221/7c6b544b/attachment.html>


More information about the llvm-dev mailing list