This recommits the following patches now that D85684 has landed1cf6f210a2[IR] Disable select ? C : undef -> C fold in ConstantFoldSelectInstruction unless we know C isn't poison.469da663f2[InstSimplify] Re-enable select ?, undef, X -> X transform when X is provably not poison122b0640fc[InstSimplify] Don't fold vectors of partial undef in SimplifySelectInst if the non-undef element value might produce poisonac0af12ed2[InstSimplify] Add test cases for opportunities to fold select ?, X, undef -> X when we can prove X isn't poison9b1e95329a[InstSimplify] Remove select ?, undef, X -> X and select ?, X, undef -> X transforms
15 KiB
15 KiB