mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Remove redundant variable.
Tested by adding assert(LoopVectorPreHeader == VecPreheader) on LLVM test suite and SPECs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223847 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2833,9 +2833,6 @@ void InnerLoopVectorizer::vectorizeLoop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fix the vector-loop phi.
|
// Fix the vector-loop phi.
|
||||||
// We created the induction variable so we know that the
|
|
||||||
// preheader is the first entry.
|
|
||||||
BasicBlock *VecPreheader = Induction->getIncomingBlock(0);
|
|
||||||
|
|
||||||
// Reductions do not have to start at zero. They can start with
|
// Reductions do not have to start at zero. They can start with
|
||||||
// any loop invariant values.
|
// any loop invariant values.
|
||||||
@ -2847,7 +2844,8 @@ void InnerLoopVectorizer::vectorizeLoop() {
|
|||||||
// Make sure to add the reduction stat value only to the
|
// Make sure to add the reduction stat value only to the
|
||||||
// first unroll part.
|
// first unroll part.
|
||||||
Value *StartVal = (part == 0) ? VectorStart : Identity;
|
Value *StartVal = (part == 0) ? VectorStart : Identity;
|
||||||
cast<PHINode>(VecRdxPhi[part])->addIncoming(StartVal, VecPreheader);
|
cast<PHINode>(VecRdxPhi[part])->addIncoming(StartVal,
|
||||||
|
LoopVectorPreHeader);
|
||||||
cast<PHINode>(VecRdxPhi[part])->addIncoming(Val[part],
|
cast<PHINode>(VecRdxPhi[part])->addIncoming(Val[part],
|
||||||
LoopVectorBody.back());
|
LoopVectorBody.back());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user