Commit e3df744
[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 4ac2a49 commit e3df744
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 | |
|---|---|---|---|
| |||
9797 | 9797 | | |
9798 | 9798 | | |
9799 | 9799 | | |
9800 | | - | |
9801 | | - | |
9802 | | - | |
| 9800 | + | |
| 9801 | + | |
| 9802 | + | |
9803 | 9803 | | |
9804 | 9804 | | |
9805 | 9805 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| 714 | + | |
| 715 | + | |
714 | 716 | | |
715 | 717 | | |
716 | 718 | | |
| |||
786 | 788 | | |
787 | 789 | | |
788 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
789 | 797 | | |
790 | 798 | | |
791 | 799 | | |
| |||
2236 | 2244 | | |
2237 | 2245 | | |
2238 | 2246 | | |
2239 | | - | |
| 2247 | + | |
2240 | 2248 | | |
2241 | 2249 | | |
2242 | 2250 | | |
| |||
2246 | 2254 | | |
2247 | 2255 | | |
2248 | 2256 | | |
2249 | | - | |
2250 | | - | |
| 2257 | + | |
| 2258 | + | |
2251 | 2259 | | |
2252 | 2260 | | |
2253 | 2261 | | |
2254 | 2262 | | |
2255 | 2263 | | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
2256 | 2268 | | |
2257 | 2269 | | |
2258 | 2270 | | |
2259 | 2271 | | |
2260 | 2272 | | |
2261 | | - | |
| 2273 | + | |
2262 | 2274 | | |
2263 | 2275 | | |
2264 | | - | |
| 2276 | + | |
2265 | 2277 | | |
2266 | 2278 | | |
2267 | 2279 | | |
2268 | 2280 | | |
2269 | 2281 | | |
2270 | | - | |
2271 | | - | |
| 2282 | + | |
2272 | 2283 | | |
2273 | 2284 | | |
2274 | 2285 | | |
| |||
2323 | 2334 | | |
2324 | 2335 | | |
2325 | 2336 | | |
2326 | | - | |
| 2337 | + | |
2327 | 2338 | | |
2328 | 2339 | | |
2329 | 2340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2290 | 2290 | | |
2291 | 2291 | | |
2292 | 2292 | | |
2293 | | - | |
| 2293 | + | |
| 2294 | + | |
2294 | 2295 | | |
2295 | 2296 | | |
2296 | 2297 | | |
| |||
2337 | 2338 | | |
2338 | 2339 | | |
2339 | 2340 | | |
2340 | | - | |
| 2341 | + | |
| 2342 | + | |
2341 | 2343 | | |
2342 | 2344 | | |
2343 | 2345 | | |
| |||
2374 | 2376 | | |
2375 | 2377 | | |
2376 | 2378 | | |
| 2379 | + | |
| 2380 | + | |
2377 | 2381 | | |
2378 | 2382 | | |
2379 | 2383 | | |
| |||
2393 | 2397 | | |
2394 | 2398 | | |
2395 | 2399 | | |
2396 | | - | |
2397 | | - | |
| 2400 | + | |
| 2401 | + | |
2398 | 2402 | | |
2399 | 2403 | | |
2400 | | - | |
2401 | | - | |
| 2404 | + | |
| 2405 | + | |
2402 | 2406 | | |
2403 | 2407 | | |
2404 | 2408 | | |
| |||
2409 | 2413 | | |
2410 | 2414 | | |
2411 | 2415 | | |
2412 | | - | |
2413 | | - | |
| 2416 | + | |
| 2417 | + | |
2414 | 2418 | | |
2415 | 2419 | | |
2416 | 2420 | | |
| |||
2431 | 2435 | | |
2432 | 2436 | | |
2433 | 2437 | | |
2434 | | - | |
2435 | | - | |
| 2438 | + | |
| 2439 | + | |
2436 | 2440 | | |
2437 | 2441 | | |
2438 | 2442 | | |
| |||
0 commit comments