LoopVectorize: Cache edge masks created during if-conversion
authorArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 27 Jun 2013 20:31:06 +0000 (20:31 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 27 Jun 2013 20:31:06 +0000 (20:31 +0000)
commit0bbbf7cbb063e7d966a764b8cda56f96ad326dc6
tree33ff45d8c5e2491619f04d57594c87dbde38993a
parentff4196adcf602cbe0581f3240c3fef0847159550
LoopVectorize: Cache edge masks created during if-conversion

Otherwise, we end up with an exponential IR blowup.
Fixes PR16472.

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