-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[FunctionAttrs] Determine underlying object by getUnderlyingObjectAggressive
#100102
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 |
---|---|---|
|
@@ -118,7 +118,7 @@ static void addLocAccess(MemoryEffects &ME, const MemoryLocation &Loc, | |
if (isNoModRef(MR)) | ||
return; | ||
|
||
const Value *UO = getUnderlyingObject(Loc.Ptr); | ||
const Value *UO = getUnderlyingObjectAggressive(Loc.Ptr); | ||
assert(!isa<AllocaInst>(UO) && | ||
"Should have been handled by getModRefInfoMask()"); | ||
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. Should convert this into 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. Thanks! I see it in the logs now. It doesn't seem to require additional test cases, so I will submit it directly later. 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. Reland with a test case: 559be8e. |
||
if (isa<Argument>(UO)) { | ||
|
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.
Compile-time impact: http://llvm-compile-time-tracker.com/compare.php?from=c1b70fa5bfea973d4141e27cf9668e9325609e19&to=9c73bbf882a265931e4669e6da2a1c99acbb4efe&stat=instructions:u