summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
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
commitf707bf4ca3381029a03e88eb449082fe9e423cc5 (patch)
treef164af6cf6ed6a727bbb8e7e0b01af504ab25ea9 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
parent75aadc2813824e18449e08a99690a6f886fadf13 (diff)
downloadbcm5719-llvm-f707bf4ca3381029a03e88eb449082fe9e423cc5.tar.gz
bcm5719-llvm-f707bf4ca3381029a03e88eb449082fe9e423cc5.zip
PR14574. Fix a bug in the code that calculates the mask the converted PHIs in if-conversion.
llvm-svn: 169916
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 9550e8a04c4..baa655cd59a 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/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)),
OpenPOWER on IntegriCloud