This is an archive of the discontinued LLVM Phabricator instance.

DAGCombiner: Add hasOneUse checks to fadd/fma combine
ClosedPublic

Authored by arsenm on Jan 4 2017, 3:23 PM.

Details

Summary

Even with aggressive fusion enabled, this requires duplicating
the fmul, or increases an fadd to another fma which is not an
improvement.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 83152.Jan 4 2017, 3:23 PM
arsenm retitled this revision from to DAGCombiner: Add hasOneUse checks to fadd/fma combine.
arsenm updated this object.
arsenm added a reviewer: escha.
arsenm added a subscriber: llvm-commits.
RKSimon accepted this revision.Jan 10 2017, 3:45 PM
RKSimon added a reviewer: RKSimon.
RKSimon added a subscriber: RKSimon.

Agreed, LGTM

lib/CodeGen/SelectionDAG/DAGCombiner.cpp
8141

clang-format - reduce lines

8154

clang-format - reduce lines

8388

clang-format - reduce lines

This revision is now accepted and ready to land.Jan 10 2017, 3:45 PM
arsenm closed this revision.Jan 10 2017, 6:13 PM

r291642