This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add more verbose logs to PromoteAlloca
ClosedPublic

Authored by Pierre-vh on Apr 18 2023, 5:24 AM.

Details

Summary

More specifically make it more talkative when it's looking at the users of
an alloca to promote it to a vector.

A common failure point of the pass is unknown or weird users of the alloca.
While debugging issues related to this pass one of the first thing I usually
did was to add logs to see how the users were being handled.
Having such logs in directly seems to be a nice addition.

Diff Detail

Event Timeline

Pierre-vh created this revision.Apr 18 2023, 5:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 5:24 AM
Pierre-vh requested review of this revision.Apr 18 2023, 5:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 5:24 AM
rampitec accepted this revision.Apr 18 2023, 11:23 AM
This revision is now accepted and ready to land.Apr 18 2023, 11:23 AM
arsenm accepted this revision.Apr 18 2023, 5:08 PM

Could upgrade some of these to optimization remarks

This revision was landed with ongoing or failed builds.Apr 19 2023, 2:30 AM
This revision was automatically updated to reflect the committed changes.