-
Notifications
You must be signed in to change notification settings - Fork 15.8k
[VPlan] Fold VPDef into VPRecipeBase (NFC). #174282
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
Open
fhahn
wants to merge
8
commits into
llvm:main
Choose a base branch
from
fhahn:vplan-merge-vpdef-vprecipebase
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4065d58
[VPlan] Merge VPDef into VPRecipeBase (NFC).
fhahn 3ce0bb4
Merge remote-tracking branch 'origin/main' into vplan-merge-vpdef-vpr…
fhahn a98f1ed
!fixup address comments, restore VPDef for now
fhahn 442b041
Merge remote-tracking branch 'origin/main' into vplan-merge-vpdef-vpr…
fhahn f4abb0f
!fixup restore VPDef class as much as possible
fhahn b7671ca
Merge remote-tracking branch 'origin/main' into vplan-merge-vpdef-vpr…
fhahn e50d180
!fixup address comments, thanks
fhahn dea8cdc
!fixup address comments, thanks
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -107,10 +107,8 @@ void VPValue::dump() const { | |||||
| dbgs() << "\n"; | ||||||
| } | ||||||
|
|
||||||
| void VPDef::dump() const { | ||||||
| const VPRecipeBase *Instr = dyn_cast_or_null<VPRecipeBase>(this); | ||||||
| VPSlotTracker SlotTracker( | ||||||
| (Instr && Instr->getParent()) ? Instr->getParent()->getPlan() : nullptr); | ||||||
| void VPRecipeBase::dump() const { | ||||||
| VPSlotTracker SlotTracker(getParent() ? getParent()->getPlan() : nullptr); | ||||||
| print(dbgs(), "", SlotTracker); | ||||||
| dbgs() << "\n"; | ||||||
| } | ||||||
|
|
@@ -120,14 +118,14 @@ VPRecipeBase *VPValue::getDefiningRecipe() { | |||||
| auto *DefValue = dyn_cast<VPRecipeValue>(this); | ||||||
| if (!DefValue) | ||||||
| return nullptr; | ||||||
| return cast<VPRecipeBase>(DefValue->Def); | ||||||
| return DefValue->Def; | ||||||
| } | ||||||
|
|
||||||
| const VPRecipeBase *VPValue::getDefiningRecipe() const { | ||||||
| auto *DefValue = dyn_cast<VPRecipeValue>(this); | ||||||
| if (!DefValue) | ||||||
| return nullptr; | ||||||
| return cast<VPRecipeBase>(DefValue->Def); | ||||||
| return DefValue->Def; | ||||||
|
||||||
| return DefValue->Def; | |
| return DefValue ? DefValue->Def : nullptr; |
Contributor
Author
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.
done thanks
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.
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.
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.
done thanks