OSDN Git Service

Merging r341416:
authorHans Wennborg <hans@hanshq.net>
Thu, 6 Sep 2018 08:16:34 +0000 (08:16 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 6 Sep 2018 08:16:34 +0000 (08:16 +0000)
commit033c77236b747f9da9e1709e66cc6708cf3e8aca
treea6e708a7585eef12412d130c2d2de5c06e08db42
parent80cc9fcb3671740157fe4251b3f15bf7ab9a035d
Merging r341416:
------------------------------------------------------------------------
r341416 | annat | 2018-09-05 00:12:23 +0200 (Wed, 05 Sep 2018) | 11 lines

[LV] First order recurrence phis should not be treated as uniform

This is fix for PR38786.
First order recurrence phis were incorrectly treated as uniform,
which caused them to be vectorized as uniform instructions.

Patch by Ayal Zaks and Orivej Desh!

Reviewed by: Anna

Differential Revision: https://reviews.llvm.org/D51639
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@341523 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/uniform-phi.ll