This is an archive of the discontinued LLVM Phabricator instance.

[clang/frontend] Do not perform FMA bydefault
AbandonedPublic

Authored by long5hot on Jul 6 2023, 6:56 AM.

Details

Summary

Clang frontend performs FMA bydefault based on option ffp-contract=on and fast.
It does not check if the target supports fma or not(for e.x. X86 Nehalem and core2).

Intent of this patch is to check if fma is supported or not.
for now checking on X86 only because it has +fma in target-features.

Diff Detail

Event Timeline

long5hot created this revision.Jul 6 2023, 6:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 6:56 AM
long5hot requested review of this revision.Jul 6 2023, 6:56 AM
long5hot updated this revision to Diff 537702.Jul 6 2023, 7:03 AM
long5hot edited the summary of this revision. (Show Details)
long5hot retitled this revision from Not to perform FMA bydefault to [clang/frontend] Do not perform FMA bydefault.
long5hot abandoned this revision.Aug 23 2023, 6:49 AM