llvm-project
aa6d5410 - [InstSimplify] Fold {u,s}{min,max} x, poison -> poison (#138166)

Commit
1 year ago
[InstSimplify] Fold {u,s}{min,max} x, poison -> poison (#138166) Following from the discussion in https://github.com/llvm/llvm-project/pull/138095#discussion_r2070484664, these intrinsics are poison if any of their operands are poison, and are marked as such in propagatesPoison in ValueTracking.cpp. This will help fold away leftover vectors produced by VectorCombine when scalarizing intrinsics.
Author
Parents
Loading