[llvm] r360241 - [VPlan] Fix "value never used" static analyzer warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 03:52:26 PDT 2019
Author: rksimon
Date: Wed May 8 03:52:26 2019
New Revision: 360241
URL: http://llvm.org/viewvc/llvm-project?rev=360241&view=rev
Log:
[VPlan] Fix "value never used" static analyzer warning. NFCI.
Modified:
llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp?rev=360241&r1=360240&r2=360241&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/VPlan.cpp Wed May 8 03:52:26 2019
@@ -373,10 +373,9 @@ void VPlan::execute(VPTransformState *St
BasicBlock *VectorPreHeaderBB = State->CFG.PrevBB;
BasicBlock *VectorHeaderBB = VectorPreHeaderBB->getSingleSuccessor();
assert(VectorHeaderBB && "Loop preheader does not have a single successor.");
- BasicBlock *VectorLatchBB = VectorHeaderBB;
// 1. Make room to generate basic-blocks inside loop body if needed.
- VectorLatchBB = VectorHeaderBB->splitBasicBlock(
+ BasicBlock *VectorLatchBB = VectorHeaderBB->splitBasicBlock(
VectorHeaderBB->getFirstInsertionPt(), "vector.body.latch");
Loop *L = State->LI->getLoopFor(VectorHeaderBB);
L->addBasicBlockToLoop(VectorLatchBB, *State->LI);
More information about the llvm-commits
mailing list