aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-12-11 21:30:14 +0000
committerNadav Rotem <nrotem@apple.com>2012-12-11 21:30:14 +0000
commit655d2c5354fcd44c329d99428c7d9196bc78dbad (patch)
treeba743917e7a455a7e2ab26e0d16420d234dcd331 /lib
parentf98f2ce29e6e2996fa58f38979143eceaa818335 (diff)
downloadexternal_llvm-655d2c5354fcd44c329d99428c7d9196bc78dbad.zip
external_llvm-655d2c5354fcd44c329d99428c7d9196bc78dbad.tar.gz
external_llvm-655d2c5354fcd44c329d99428c7d9196bc78dbad.tar.bz2
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')
-rw-r--r--lib/Transforms/Vectorize/LoopVectorize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/LoopVectorize.cpp b/lib/Transforms/Vectorize/LoopVectorize.cpp
index 9550e8a..baa655c 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)),