This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Use isFMAFasterThanFMulAndFAdd for MVE
ClosedPublic

Authored by dmgreen on Oct 17 2019, 9:31 AM.

Details

Summary

The Arm backend will usually return false for isFMAFasterThanFMulAndFAdd, where both the fused VFMA.f32 and a non-fused VMLA.f32 are usually available for scalar code. For MVE we don't have the non-fused version though. It makes more sense for isFMAFasterThanFMulAndFAdd to return true, allowing us to simplify some of the existing ISel patterns.

The tests here are that non of the existing tests failed, and so we are still selecting VFMA and VFMS.

Diff Detail

Event Timeline

dmgreen created this revision.Oct 17 2019, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2019, 9:31 AM
This revision is now accepted and ready to land.Nov 4 2019, 4:01 AM
This revision was automatically updated to reflect the committed changes.