forked from OSchip/llvm-project
dfec81107f
Summary: If horizontal reduction tree starts from the binary operation that is used in PHI node, but this PHI is not used in horizontal reduction, we may end up with extra addition of this PHI node after vectorization. Here is an example: ``` %phi = phi i32 [ %tmp, %end], ... ... %tmp = add i32 %tmp1, %tmp2 end: ``` after vectorization we always have something like: ``` %phi = phi i32 [ %tmp, %end], ... ... %red = extractelement <8 x 32> %vec.red, 0 %tmp = add i32 %red, %phi end: ``` even if `%phi` is not used in reduction tree. Patch considers these PHI nodes as extra arguments and considers them in the final result iff they really used in reduction. Reviewers: mkuper, hfinkel, mzolotukhin Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D30409 llvm-svn: 296606 |
||
---|---|---|
.. | ||
commute.ll | ||
gather-reduce.ll | ||
gather-root.ll | ||
getelementptr.ll | ||
horizontal.ll | ||
lit.local.cfg | ||
load-store-q.ll | ||
minimum-sizes.ll | ||
mismatched-intrinsics.ll | ||
nontemporal.ll | ||
sdiv-pow2.ll |