This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Introduce threshold option to constrain stack slot sharing during stack coloring.
AbandonedPublic

Authored by vpykhtin on Mar 12 2023, 3:33 AM.

Details

Summary

AMDGPU code with enabled address sanitizer generates tons of stack objects (> 200000) and
takes forever to compile due to the time spent on slot sharing.

I made up the threshold value, not sure what it should be (apparently more than 42) but
on the other hand - the more stack objects you have the more useful is sharing.

Diff Detail

Event Timeline

vpykhtin created this revision.Mar 12 2023, 3:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2023, 3:33 AM
vpykhtin requested review of this revision.Mar 12 2023, 3:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2023, 3:33 AM
dexonsmith resigned from this revision.Mar 12 2023, 9:14 AM
dexonsmith added a subscriber: Gerolf.

I'm not the right person to review this. @Gerolf, perhaps you can suggest an alternate?

vpykhtin abandoned this revision.Mar 14 2023, 3:13 AM

Unfortunatelly stack growed x180 times with slot sharing disabled, so this isn't an option.