[RISCV] Explicitly create IMPLICIT_DEF instead of UNDEF for vectors i… (#67369)
…n RISCVDAGToDAGISel::Select. UNDEF needs to go through isel itself. All of the nodes have been topologically sorted so that instruction selection precedes from root to entry node. If we create a new node that needs to go through isel, we have to insert it into the correct place in the topological sort. If we don't, it might not get selected at all in some cases. Some targets have a function like X86's insertDAGNode to sort newly created nodes. To avoid introducing such a function on RISC-V, we can directly emit the IMPLICIT_DEF node that UNDEF would get selected to.
Loading
Please sign in to comment