-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[SelectionDAG] Mark frame index as "aliased" at argument copy elison #89712
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
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 | ||||
---|---|---|---|---|---|---|
|
@@ -11128,14 +11128,15 @@ static void tryToElideArgumentCopy( | |||||
} | ||||||
|
||||||
// Perform the elision. Delete the old stack object and replace its only use | ||||||
// in the variable info map. Mark the stack object as mutable. | ||||||
// in the variable info map. Mark the stack object as mutable and aliased. | ||||||
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. Is there any practical difference between the mutable and isAliased cases? Where is the ultimate alias query that goes wrong? 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. isAliased is used inside ScheduleDAGInstrs.cpp getUnderlyingObjectsForInstr:
|
||||||
LLVM_DEBUG({ | ||||||
dbgs() << "Eliding argument copy from " << Arg << " to " << *AI << '\n' | ||||||
<< " Replacing frame index " << OldIndex << " with " << FixedIndex | ||||||
<< '\n'; | ||||||
}); | ||||||
MFI.RemoveStackObject(OldIndex); | ||||||
MFI.setIsImmutableObjectIndex(FixedIndex, false); | ||||||
MFI.setIsAliasedObjectIndex(FixedIndex, true); | ||||||
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.
Suggested change
|
||||||
AllocaIndex = FixedIndex; | ||||||
ArgCopyElisionFrameIndexMap.insert({OldIndex, FixedIndex}); | ||||||
for (SDValue ArgVal : ArgVals) | ||||||
|
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.