diff options
author | Anna Thomas <anna@azul.com> | 2017-04-13 18:59:25 +0000 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2017-04-13 18:59:25 +0000 |
commit | dcdb325fee27c1283855cbf47747049f3b7b46bc (patch) | |
tree | 803f3cb419b0e2f2d078448f30f7c64b37a79387 /llvm/lib/Transforms/Utils/LCSSA.cpp | |
parent | 4765f17738a9c257fee80deb022cf6b82aa70d40 (diff) | |
download | bcm5719-llvm-dcdb325fee27c1283855cbf47747049f3b7b46bc.tar.gz bcm5719-llvm-dcdb325fee27c1283855cbf47747049f3b7b46bc.zip |
[LV] Fix the vector code generation for first order recurrence
Summary:
In first order recurrences where phi's are used outside the loop,
we should generate an additional vector.extract of the second last element from
the vectorized phi update.
This is because we require the phi itself (which is the value at the second last
iteration of the vector loop) and not the phi's update within the loop.
Also fix the code gen when we just unroll, but don't vectorize.
Fixes PR32396.
Reviewers: mssimpso, mkuper, anemet
Subscribers: llvm-commits, mzolotukhin
Differential Revision: https://reviews.llvm.org/D31979
llvm-svn: 300238
Diffstat (limited to 'llvm/lib/Transforms/Utils/LCSSA.cpp')
0 files changed, 0 insertions, 0 deletions