Commit 75a591b
[Analysis][LV] Handle FMinNum/FMaxNum in RecurrenceDescriptor::getOpcode
Teach getOpcode to return FCmp for FMinNum/FMaxNum. Without these cases, passes that query the opcode for minNum/maxNum reductions can hit llvm_unreachable. Add a unit test to cover both enums.1 parent 7f0e407 commit 75a591b
File tree
2 files changed
+11
-0
lines changed- llvm
- lib/Analysis
- unittests/Analysis
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
1231 | 1233 | | |
1232 | 1234 | | |
1233 | 1235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
0 commit comments