This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Adjust `MaxAtomicSizeInBitsSupported` on PPC64
ClosedPublic

Authored by lkail on Mar 31 2022, 11:01 PM.

Details

Summary

AtomicExpandPass uses this variable to determine emitting libcalls or not. The default value is 1024 and if we don't specify it for PPC64 explicitly, AtomicExpandPass won't emit __atomic_* libcalls for those target unable to inline atomic ops and finally the backend emits __sync_* libcalls. Thanks @efriedma for pointing it out.

Diff Detail

Event Timeline

lkail created this revision.Mar 31 2022, 11:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2022, 11:01 PM
lkail requested review of this revision.Mar 31 2022, 11:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2022, 11:01 PM
This revision is now accepted and ready to land.Apr 1 2022, 12:10 PM
lkail updated this revision to Diff 421413.Apr 7 2022, 9:39 PM

Rebased.

This revision was landed with ongoing or failed builds.Apr 8 2022, 5:03 PM
This revision was automatically updated to reflect the committed changes.