[LV] Cache block mask values
authorGil Rapaport <gil.rapaport@intel.com>
Tue, 18 Apr 2017 14:43:43 +0000 (14:43 +0000)
committerGil Rapaport <gil.rapaport@intel.com>
Tue, 18 Apr 2017 14:43:43 +0000 (14:43 +0000)
commitfb1d915ab2dff98eac756cf882b872f9a4f34882
treeb94c5edb714f81305431b4c1ed62408a0cdaa773
parent9e7bf161ea9083e9282cf4af72ac0d5f13115753
[LV] Cache block mask values

This patch is part of D28975's breakdown.

Add caching for block masks similar to the cache already used for edge masks,
replacing generation per user with reusing the first generated value which
dominates all uses.

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

llvm-svn: 300557
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp