-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[VPlan] Create resume phis in scalar preheader early. (NFC) #166099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -346,6 +346,8 @@ TEST_F(VPIRVerifierTest, testVerifyIRPhiInScalarHeaderVPIRBB) { | |
| Function *F = M.getFunction("f"); | ||
| BasicBlock *LoopHeader = F->getEntryBlock().getSingleSuccessor(); | ||
| auto Plan = buildVPlan(LoopHeader); | ||
| VPValue *Zero = Plan->getConstantInt(32, 0); | ||
| Plan->getScalarHeader()->front().addOperand(Zero); | ||
|
Comment on lines
+349
to
+350
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The initial plan now already has the operands of the scalar header phis set up correctly, so here we now add anothe operand to trigger a mismatch between #incoming values and #predecessors |
||
|
|
||
| #if GTEST_HAS_STREAM_REDIRECTION | ||
| ::testing::internal::CaptureStderr(); | ||
|
|
@@ -387,8 +389,6 @@ TEST_F(VPIRVerifierTest, testVerifyIRPhiInExitVPIRBB) { | |
| {HeaderBlock->front().getVPSingleValue()}); | ||
| DefI->insertBefore(Plan->getMiddleBlock()->getTerminator()); | ||
| Plan->getExitBlocks()[0]->front().addOperand(DefI); | ||
| VPValue *Zero = Plan->getConstantInt(32, 0); | ||
| Plan->getScalarHeader()->front().addOperand(Zero); | ||
|
Comment on lines
-390
to
-391
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The initial plan now already has the operands of the scalar header phis set up correctly, so this change is not needed any more to fix them up. |
||
|
|
||
| #if GTEST_HAS_STREAM_REDIRECTION | ||
| ::testing::internal::CaptureStderr(); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes one of the few remaining instances that retrieve recipes via IR referneces.