This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Form more FMAs if fusion is allowed
ClosedPublic

Authored by arsenm on Dec 18 2016, 1:50 PM.

Details

Summary

Extend the existing fadd/fsub->fmad combines to produce
FMA if allowed.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 81890.Dec 18 2016, 1:50 PM
arsenm retitled this revision from to AMDGPU: Form more FMAs if fusion is allowed.
arsenm updated this object.
arsenm added a reviewer: nhaehnle.
arsenm added a subscriber: llvm-commits.
tstellarAMD accepted this revision.Dec 21 2016, 6:49 PM
tstellarAMD edited edge metadata.

LGTM.

test/CodeGen/AMDGPU/fmuladd.f16.ll
1–9

You can use --check-prefixes=

This revision is now accepted and ready to land.Dec 21 2016, 6:49 PM
arsenm closed this revision.Dec 21 2016, 8:06 PM

r290311

test/CodeGen/AMDGPU/fmuladd.ll