[PATCH] ISelDAG: Spot chain loops involving MachineNodes
t.p.northover at gmail.com
Fri Sep 20 03:45:10 PDT 2013
Previously, the DAGISel function WalkChainUsers was spotting that it had entered already-selected territory by whether a node was a MachineNode (amongst other things). Since it's fairly common practice to insert MachineNodes during ISelLowering, this was not the correct check.
Looking around, it seems that other nodes get their NodeId set to -1 upon selection, so this makes sure the same thing happens to all MachineNodes and uses that characteristic to determine whether we should stop looking for a loop during selection.
This should fix PR15840.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7263 bytes
Desc: not available
More information about the llvm-commits