mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-19 08:35:45 +00:00
Revert "[C++11] Add predecessors(BasicBlock *) / successors(BasicBlock *) iterator ranges."
This reverts commit r213474 (and r213475), which causes a miscompile on a stage2 LTO build. I'll reply on the list in a moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213562 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2950,8 +2950,9 @@ InnerLoopVectorizer::createBlockInMask(BasicBlock *BB) {
|
||||
Value *Zero = ConstantInt::get(IntegerType::getInt1Ty(BB->getContext()), 0);
|
||||
VectorParts BlockMask = getVectorValue(Zero);
|
||||
|
||||
for (BasicBlock *Pred : predecessors(BB)) {
|
||||
VectorParts EM = createEdgeMask(Pred, BB);
|
||||
// For each pred:
|
||||
for (pred_iterator it = pred_begin(BB), e = pred_end(BB); it != e; ++it) {
|
||||
VectorParts EM = createEdgeMask(*it, BB);
|
||||
for (unsigned part = 0; part < UF; ++part)
|
||||
BlockMask[part] = Builder.CreateOr(BlockMask[part], EM[part]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user