Nikita Popov dd116369f6
[InstSimplify] Fix incorrect poison propagation when folding phi (#96631)
We can only replace phi(X, undef) with X, if X is known not to be
poison. Otherwise, the result may be more poisonous on the undef branch.

Fixes https://github.com/llvm/llvm-project/issues/68683.
2024-11-07 14:09:45 +01:00
..
2023-09-01 19:45:03 -04:00
2023-02-14 10:25:24 -04:00
2023-06-28 14:50:16 -04:00
2022-11-04 10:18:04 -07:00