Commit
d042f2db5bf0a852bdbef53ab0310d363031f56f
by nikita.ppv
[InstSimplify] Fold call null/undef to poison
Calling null or undef results in immediate undefined behavior. Return poison instead of undef in this case, similar to what we do for immediate UB due to division by zero.
Commit
221c3b174b15855ec941ef60a551f22ac96a254e
by nikita.ppv
[InstSimplify] Canonicalize non-demanded shuffle op to poison (NFCI)
I don't believe this has an observable effect, because the only thing we care about here is replacing the operand with a constant so following folds can apply. This change is just to make the representation follow canonical unary shuffle form.