diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-12-11 21:30:14 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-12-11 21:30:14 +0000 |
commit | 655d2c5354fcd44c329d99428c7d9196bc78dbad (patch) | |
tree | ba743917e7a455a7e2ab26e0d16420d234dcd331 /lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | f98f2ce29e6e2996fa58f38979143eceaa818335 (diff) |
PR14574. Fix a bug in the code that calculates the mask the converted PHIs in if-conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp index 9550e8a04c..baa655cd59 100644 --- a/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -954,7 +954,7 @@ InnerLoopVectorizer::vectorizeBlockInLoop(LoopVectorizationLegality *Legal, // At this point we generate the predication tree. There may be // duplications since this is a simple recursive scan, but future // optimizations will clean it up. - Value *Cond = createBlockInMask(P->getIncomingBlock(0)); + Value *Cond = createEdgeMask(P->getIncomingBlock(0), P->getParent()); WidenMap[P] = Builder.CreateSelect(Cond, getVectorValue(P->getIncomingValue(0)), |