OSDN Git Service

[LV] Prevent LV to run cost model twice for VF=2
authorDiego Caballero <diego.caballero@intel.com>
Fri, 15 Jun 2018 16:21:35 +0000 (16:21 +0000)
committerDiego Caballero <diego.caballero@intel.com>
Fri, 15 Jun 2018 16:21:35 +0000 (16:21 +0000)
commitff160b6333ced52e81ac8874abc9bed504be0891
tree678e5c9c17a4add462564a4fa502881d2c1e08b0
parentdf60d71070b4bb6898658f5f01f992a2541437fb
[LV] Prevent LV to run cost model twice for VF=2

This is a minor fix for LV cost model, where the cost for VF=2 was
computed twice when the vectorization of the loop was forced without
specifying a VF.

Reviewers: xusx595, hsaito, fhahn, mkuper

Reviewed By: hsaito, xusx595

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

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