re: How to deal with UNDEF SDNode?

Chenwj,
In ISD the UNDEF node (i.e. SDValue) is an "undefined value”,
not “undefined behavior”, i.e. not scary!. You can think of it as an
uninitialized / don’t-care register, or in a vector an uninitialized / don’t-care element.

Peter Lawrence.

Hi Peter,