OSDN Git Service

LoopVectorize: Move call of canHoistAllLoads to canVectorizeWithIfConvert
authorArnold Schwaighofer <aschwaighofer@apple.com>
Wed, 15 May 2013 22:38:14 +0000 (22:38 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Wed, 15 May 2013 22:38:14 +0000 (22:38 +0000)
commit0aad08adfda3ff7c4f9c453ba821057b5436c4ef
tree2a255c8921cab1e9a9803ea58e0d7f7ffa8807ff
parent377b2270124f6f566c0f291bcb02f7755b642c2c
LoopVectorize: Move call of canHoistAllLoads to canVectorizeWithIfConvert

We only want to check this once, not for every conditional block in the loop.

No functionality change (except that we don't perform a check redudantly
anymore).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp