-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[VPlan] Add incoming_[blocks,values] iterators to VPPhiAccessors (NFC) #138472
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b357af4
[VPlan] Add VPPhiAccessors to provide interface for phi recipes (NFC)
fhahn 9113022
Merge remote-tracking branch 'origin/main' into vplan-phi-accessors
fhahn c61233f
!fixup address latest comments, thanks
fhahn a73a137
Merge remote-tracking branch 'origin/main' into vplan-phi-accessors
fhahn 90b2d4d
Merge remote-tracking branch 'origin/main' into vplan-phi-accessors
fhahn f768b97
!fixup address latest comments, thanks
fhahn d6d6bb5
Merge remote-tracking branch 'origin/main' into vplan-phi-accessors
fhahn 8dfd569
Merge remote-tracking branch 'origin/main' into vplan-phi-accessors
fhahn 595b057
!fixup address latest comments, thanks
fhahn a2b4ebb
Merge remote-tracking branch 'origin/main' into vplan-phi-accessors
fhahn 46780ab
!fixup address comments, make getAsRecipe pure virtual.
fhahn 5fee077
Use virtual
fhahn 450901e
Merge remote-tracking branch 'origin/main' into vplan-verify-def-use-phi
fhahn 996af30
[VPlan] Add VPPhiAccessors::incoming_values_and_blocks (NFC).
fhahn 904998b
Merge remote-tracking branch 'origin/main' into vplan-phi-iterators
fhahn bcd9064
!fixup after merge
fhahn 7291b0e
Merge remote-tracking branch 'origin/main' into vplan-phi-iterators
fhahn 2c318e6
Merge remote-tracking branch 'origin/main' into vplan-phi-iterators
fhahn 260e727
!fixup use in VPlanPredicator.
fhahn fc8cf8b
Merge remote-tracking branch 'origin/main' into vplan-phi-iterators
fhahn 4b705f8
!fixup use map_range with index_range
fhahn 14a6b44
Merge branch 'main' into vplan-phi-iterators
fhahn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -250,17 +250,15 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) { | |
| for (const VPUser *U : V->users()) { | ||
| auto *UI = cast<VPRecipeBase>(U); | ||
| if (auto *Phi = dyn_cast<VPPhiAccessors>(UI)) { | ||
| for (unsigned Idx = 0; Idx != Phi->getNumIncoming(); ++Idx) { | ||
| VPValue *IncomingVPV = Phi->getIncomingValue(Idx); | ||
| for (const auto &[IncomingVPV, IncomingVPBB] : | ||
| Phi->incoming_values_and_blocks()) { | ||
|
Comment on lines
+253
to
+254
Contributor
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. Not majorly important but if you wanted to preserve the error message you could do |
||
| if (IncomingVPV != V) | ||
| continue; | ||
|
|
||
| const VPBasicBlock *IncomingVPBB = Phi->getIncomingBlock(Idx); | ||
| if (VPDT.dominates(VPBB, IncomingVPBB)) | ||
| continue; | ||
|
|
||
| errs() << "Incoming def at index " << Idx | ||
| << " does not dominate incoming block!\n"; | ||
| errs() << "Incoming def does not dominate incoming block!\n"; | ||
| #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) | ||
| VPSlotTracker Tracker(VPBB->getPlan()); | ||
| IncomingVPV->getDefiningRecipe()->print(errs(), " ", Tracker); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.