mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
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
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user