Commit cdff7f0
committed
[LV] Retrieve middle VPBB via scalar ph to fix epilogue resumephis (NFC)
If ScalarPH has predecessors, we may need to update its reduction resume
values. If there is a middle block, it must be the first predecessor.
Note that the first predecessor may not be the middle block, if the
middle block doesn't branch to the scalar preheader. In that case,
fixReductionScalarResumeWhenVectorizingEpilog will be a no-op.
In preparation for llvm#106748.1 parent 61768b3 commit cdff7f0
1 file changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7786 | 7786 | | |
7787 | 7787 | | |
7788 | 7788 | | |
7789 | | - | |
7790 | 7789 | | |
7791 | 7790 | | |
7792 | 7791 | | |
| |||
7801 | 7800 | | |
7802 | 7801 | | |
7803 | 7802 | | |
7804 | | - | |
7805 | | - | |
7806 | | - | |
7807 | | - | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
| 7811 | + | |
| 7812 | + | |
| 7813 | + | |
| 7814 | + | |
| 7815 | + | |
| 7816 | + | |
7808 | 7817 | | |
7809 | 7818 | | |
7810 | 7819 | | |
| |||
0 commit comments