This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Specify MaxAtomicInlineWidth for RISC-V
AbandonedPublic

Authored by lewis-revill on Jan 25 2019, 8:47 AM.

Details

Reviewers
asb
Summary

This prevents Clang from generating libcalls which are not necessary when the target has atomic support.

Diff Detail

Repository
rC Clang

Event Timeline

lewis-revill created this revision.Jan 25 2019, 8:47 AM
asb added a comment.Jan 30 2019, 7:25 AM

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.

lewis-revill abandoned this revision.Feb 1 2019, 2:29 AM

Abandoned in favour of D57450

Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2019, 2:29 AM