This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Limit scaling of repeated FP divisor by splat factor
Needs ReviewPublic

Authored by c-rhodes on Jan 27 2022, 5:46 AM.

Details

Summary

In combineRepeatedFPDivisors only scale num uses by splat if the
division can be converted into scalar op.

Diff Detail

Event Timeline

c-rhodes created this revision.Jan 27 2022, 5:46 AM
c-rhodes requested review of this revision.Jan 27 2022, 5:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2022, 5:46 AM
david-arm added inline comments.Feb 2 2022, 6:17 AM
llvm/test/CodeGen/AArch64/fdiv-combine.ll
199

To be honest, the original code looks faster to me even with the extra fmul and fmov. The latency of a fmul is a lot lower than fdiv and the throughput for fdiv is terrible, whereas it's pretty good for fmul.

david-arm resigned from this revision.Aug 31 2023, 2:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2023, 2:44 AM