Propagate DAG node ordering during type legalization and instruction selection