Commit 1e79ea1
authored
[LoopUnroll] Support parallel reductions for minmax (#182473)
This patch
* Supports parallel reductions for min/max operations in LoopUnroller.
* Adds relevant test (including intrinsics).
* Renames flag -unroll-add-parallel-reduction to
-unroll-parallel-reduction.
* Relaxes check in IVDescriptors.cpp (`getMinMaxRecurrence`) to handle
out-of-loop uses.
Planning to take support for vector types in the next patch.1 parent 4044ea3 commit 1e79ea1
2 files changed
Lines changed: 913 additions & 7 deletions
File tree
- llvm
- lib/Transforms/Utils
- test/Transforms/LoopUnroll
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1534 | 1534 | | |
1535 | 1535 | | |
1536 | 1536 | | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1540 | 1543 | | |
1541 | 1544 | | |
1542 | 1545 | | |
| |||
1713 | 1716 | | |
1714 | 1717 | | |
1715 | 1718 | | |
1716 | | - | |
1717 | | - | |
| 1719 | + | |
1718 | 1720 | | |
1719 | | - | |
1720 | | - | |
| 1721 | + | |
1721 | 1722 | | |
1722 | 1723 | | |
1723 | 1724 | | |
| |||
0 commit comments