Skip to content

Commit 77f1e7f

Browse files
committed
Address comments
1 parent f11ad61 commit 77f1e7f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/unittests/Transforms/Vectorize/VPlanVerifierTest.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,16 +291,15 @@ TEST_F(VPVerifierTest, NonHeaderPHIInHeader) {
291291
VPlan &Plan = getPlan();
292292
VPValue *Zero = Plan.getOrAddLiveIn(ConstantInt::get(Type::getInt32Ty(C), 0));
293293
auto *CanIV = new VPCanonicalIVPHIRecipe(Zero, {});
294-
VPInstruction *BranchOnCond =
295-
new VPInstruction(VPInstruction::BranchOnCond, {CanIV});
294+
auto *BranchOnCond = new VPInstruction(VPInstruction::BranchOnCond, {CanIV});
296295

297296
VPBasicBlock *VPBB1 = Plan.getEntry();
298-
VPBasicBlock *VPBB2 = Plan.createVPBasicBlock("");
297+
VPBasicBlock *VPBB2 = Plan.createVPBasicBlock("header");
299298

300299
VPBB2->appendRecipe(CanIV);
301300

302301
PHINode *PHINode = PHINode::Create(Type::getInt32Ty(C), 2);
303-
VPIRPhi *IRPhi = new VPIRPhi(*PHINode);
302+
auto *IRPhi = new VPIRPhi(*PHINode);
304303
VPBB2->appendRecipe(IRPhi);
305304
VPBB2->appendRecipe(BranchOnCond);
306305

0 commit comments

Comments
 (0)