This prevents Clang from generating libcalls which are not necessary when the target has atomic support.
Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Thanks Lewis, I actually had a patch for this which I forgot to clean up and submit. I've done so now: D57450. That adds tests, and sets MaxAtomicInlineWidth and MaxAtomicPromoteWidth conditionally based on whether the target has the atomics extension or not.