Simplify cycle and generalize validity checks in ISel (HandleMergeInputChains,Cleanup cycle/validity checks in ISel (IsLegalToFold, HandleMergeInputChains). Now attempt to do a full search for cycles pruning with NodeId when possible.
findNonImmUse) enabling some instruction matches. Also, we now catch loops going
As part of this propagate the NodeId-based cutoffs to narrow hasPreprocessorHelper searches.
through indirect chain dependencies earlier in ISel matching.
These two checks should be now use the DAG predecessor framework and should be
mergable into a single cheaper check.
As part of this propogate the NodeId-based cutoffs to narrow
hasPreprocessorHelper searches.