Commit 087a533
committed
[VPlan] Change parent of VPReductionRecipe to VPRecipeWithIRFlags. NFC
This patch change the parent of the VPReductionRecipe from
VPSingleDefRecipe to VPRecipeWithIRFlags and also print/get/control
flags by the VPRecipeWithIRFlags. This will remove the dependency of the
underlying instruction.
This patch also add a new function `setFastMathFlags()` to the
VPRecipeWithIRFlags because the entire reduction chain may contains
multiple instructions. And the underlying instruction may not contains
the corresponding flags for this reduction.1 parent 9a0e4d7 commit 087a533
File tree
3 files changed
+36
-21
lines changed- llvm/lib/Transforms/Vectorize
3 files changed
+36
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9799 | 9799 | | |
9800 | 9800 | | |
9801 | 9801 | | |
9802 | | - | |
9803 | | - | |
9804 | | - | |
| 9802 | + | |
| 9803 | + | |
| 9804 | + | |
9805 | 9805 | | |
9806 | 9806 | | |
9807 | 9807 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
| 717 | + | |
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
| |||
788 | 790 | | |
789 | 791 | | |
790 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
791 | 799 | | |
792 | 800 | | |
793 | 801 | | |
| |||
2286 | 2294 | | |
2287 | 2295 | | |
2288 | 2296 | | |
2289 | | - | |
| 2297 | + | |
2290 | 2298 | | |
2291 | 2299 | | |
2292 | 2300 | | |
| |||
2296 | 2304 | | |
2297 | 2305 | | |
2298 | 2306 | | |
2299 | | - | |
2300 | | - | |
| 2307 | + | |
| 2308 | + | |
2301 | 2309 | | |
2302 | 2310 | | |
2303 | 2311 | | |
2304 | 2312 | | |
2305 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
2306 | 2318 | | |
2307 | 2319 | | |
2308 | 2320 | | |
2309 | 2321 | | |
2310 | 2322 | | |
2311 | | - | |
| 2323 | + | |
2312 | 2324 | | |
2313 | 2325 | | |
2314 | | - | |
| 2326 | + | |
2315 | 2327 | | |
2316 | 2328 | | |
2317 | 2329 | | |
2318 | 2330 | | |
2319 | 2331 | | |
2320 | | - | |
2321 | | - | |
| 2332 | + | |
2322 | 2333 | | |
2323 | 2334 | | |
2324 | 2335 | | |
| |||
2373 | 2384 | | |
2374 | 2385 | | |
2375 | 2386 | | |
2376 | | - | |
| 2387 | + | |
2377 | 2388 | | |
2378 | 2389 | | |
2379 | 2390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2224 | 2224 | | |
2225 | 2225 | | |
2226 | 2226 | | |
2227 | | - | |
| 2227 | + | |
| 2228 | + | |
2228 | 2229 | | |
2229 | 2230 | | |
2230 | 2231 | | |
| |||
2275 | 2276 | | |
2276 | 2277 | | |
2277 | 2278 | | |
2278 | | - | |
| 2279 | + | |
| 2280 | + | |
2279 | 2281 | | |
2280 | 2282 | | |
2281 | 2283 | | |
| |||
2312 | 2314 | | |
2313 | 2315 | | |
2314 | 2316 | | |
| 2317 | + | |
| 2318 | + | |
2315 | 2319 | | |
2316 | 2320 | | |
2317 | 2321 | | |
| |||
2331 | 2335 | | |
2332 | 2336 | | |
2333 | 2337 | | |
2334 | | - | |
2335 | | - | |
| 2338 | + | |
| 2339 | + | |
2336 | 2340 | | |
2337 | 2341 | | |
2338 | | - | |
2339 | | - | |
| 2342 | + | |
| 2343 | + | |
2340 | 2344 | | |
2341 | 2345 | | |
2342 | 2346 | | |
| |||
2347 | 2351 | | |
2348 | 2352 | | |
2349 | 2353 | | |
2350 | | - | |
2351 | | - | |
| 2354 | + | |
| 2355 | + | |
2352 | 2356 | | |
2353 | 2357 | | |
2354 | 2358 | | |
| |||
2369 | 2373 | | |
2370 | 2374 | | |
2371 | 2375 | | |
2372 | | - | |
2373 | | - | |
| 2376 | + | |
| 2377 | + | |
2374 | 2378 | | |
2375 | 2379 | | |
2376 | 2380 | | |
| |||
0 commit comments