This is an archive of the discontinued LLVM Phabricator instance.

IROutliner: Fix another assert with non-0 alloca addrspaces
ClosedPublic

Authored by arsenm on Jan 5 2023, 8:03 AM.

Details

Summary

Code is inserting an addrspacecast it shouldn't be, but
that's a separate CodeExtractor bug.

This also stops caring about typed pointers.

Diff Detail

Event Timeline

arsenm created this revision.Jan 5 2023, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2023, 8:03 AM
arsenm requested review of this revision.Jan 5 2023, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2023, 8:03 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 486590.Jan 5 2023, 8:10 AM

Check function signature

AndrewLitteken added inline comments.Jan 5 2023, 8:15 AM
llvm/lib/Transforms/IPO/IROutliner.cpp
1335

What's the reasoning behind removing the check for the type of pointer and making it only care about whether it is a pointer? There can be multiple sets outputs to an set of extracted function and (as I understand it) the previous check looked checked that the argument type is a pointer to a specific type as well to not encounter errors later on.

arsenm added inline comments.Jan 5 2023, 8:35 AM
llvm/lib/Transforms/IPO/IROutliner.cpp
1335

Pointer element types are no more and it's not worth thinking about them

ping, now there's really no reason to worry about typed pointers

AndrewLitteken accepted this revision.Jan 27 2023, 7:32 AM

Makes sense, I don't think this will cause any issues then.

LGTM

This revision is now accepted and ready to land.Jan 27 2023, 7:32 AM