OSDN Git Service

[LV] Remove unnecessary DoExtraAnalysis guard (silent bug)
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 20 Dec 2017 13:28:38 +0000 (13:28 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 20 Dec 2017 13:28:38 +0000 (13:28 +0000)
commitf605692d392b64c0ba3443405808f13edacf1f0f
tree886c9c15ed8af43b43e6375d2ac786095af8e44a
parenteb585b8b48cd3cec08da5fcf5411a3b4c8ee5e33
[LV] Remove unnecessary DoExtraAnalysis guard (silent bug)

canVectorize is only checking if the loop has a normalized pre-header if DoExtraAnalysis is true.
This doesn't make sense to me because reporting analysis information shouldn't alter legality
checks. This is probably the result of a last minute minor change before committing (?).

Patch by Diego Caballero.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D40973

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321172 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/legal_preheader_check.ll [new file with mode: 0644]