Commit a49cebb
committed
[InstSimplify] Fold {u,s}{min,max} x, poison -> poison
Following from the discussion in #138095 (comment), 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.1 parent e5f09aa commit a49cebb
File tree
2 files changed
+8
-4
lines changed- llvm
- lib/Analysis
- test/Transforms/InstSimplify
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6549 | 6549 | | |
6550 | 6550 | | |
6551 | 6551 | | |
| 6552 | + | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
6552 | 6556 | | |
6553 | 6557 | | |
6554 | 6558 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments