[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)
commit467abe3e4f95bf033c93012cbbb28decd649e909
tree34f0bfc10e6959b5ed14adff5fa344bf82a1bb39
parenta50eec0293f02f5638f9602e51d69d761dbba241
[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

llvm-svn: 321172
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/legal_preheader_check.ll [new file with mode: 0644]