Commit f4e3daa
authored
[DAG] Early exit for flags in canCreateUndefOrPoison [nfc] (#89834)
This matches the style used in the Analysis version of this routine, and
makes it less likely we'll miss a poison generating flag in future
changes. Unlike IR, the check for poison generating flags doesn't need
to switch over opcode since all nodes have the SDFlags storage.1 parent 09cdfd6 commit f4e3daa
File tree
2 files changed
+15
-19
lines changed- llvm
- include/llvm/CodeGen
- lib/CodeGen/SelectionDAG
2 files changed
+15
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
999 | 999 | | |
1000 | 1000 | | |
1001 | 1001 | | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
1002 | 1009 | | |
1003 | 1010 | | |
1004 | 1011 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5128 | 5128 | | |
5129 | 5129 | | |
5130 | 5130 | | |
| 5131 | + | |
| 5132 | + | |
| 5133 | + | |
5131 | 5134 | | |
5132 | 5135 | | |
5133 | 5136 | | |
| |||
5167 | 5170 | | |
5168 | 5171 | | |
5169 | 5172 | | |
5170 | | - | |
5171 | | - | |
5172 | | - | |
| 5173 | + | |
5173 | 5174 | | |
5174 | 5175 | | |
5175 | | - | |
| 5176 | + | |
5176 | 5177 | | |
5177 | | - | |
5178 | | - | |
5179 | 5178 | | |
5180 | 5179 | | |
5181 | 5180 | | |
5182 | | - | |
5183 | | - | |
5184 | | - | |
| 5181 | + | |
| 5182 | + | |
5185 | 5183 | | |
5186 | 5184 | | |
5187 | 5185 | | |
5188 | | - | |
5189 | | - | |
5190 | | - | |
5191 | | - | |
5192 | | - | |
5193 | | - | |
5194 | | - | |
5195 | | - | |
5196 | | - | |
5197 | | - | |
| 5186 | + | |
5198 | 5187 | | |
5199 | 5188 | | |
5200 | 5189 | | |
| |||
0 commit comments