This is an archive of the discontinued LLVM Phabricator instance.

Do not recombine FMA when that is not needed.
ClosedPublic

Authored by deadalnix on Jun 2 2017, 12:44 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

deadalnix created this revision.Jun 2 2017, 12:44 PM
deadalnix updated this revision to Diff 101272.Jun 2 2017, 1:46 PM

Do it in all cases.

zvi added inline comments.Jun 4 2017, 12:07 PM
lib/Target/X86/X86ISelLowering.cpp
34158 ↗(On Diff #101272)

In addition to this change, would it be better to refactor the if-else chain into a switch statement?

deadalnix added inline comments.Jun 5 2017, 10:34 AM
lib/Target/X86/X86ISelLowering.cpp
34158 ↗(On Diff #101272)

You tell me :) I'm not such a siwhc with another switch in each 'case' would be clearer TBH.

RKSimon accepted this revision.Jul 31 2017, 5:42 AM

LGTM - add comments if you can.

lib/Target/X86/X86ISelLowering.cpp
34532 ↗(On Diff #108784)

comment

34563 ↗(On Diff #108784)

comment

This revision is now accepted and ready to land.Jul 31 2017, 5:42 AM
deadalnix updated this revision to Diff 108942.Jul 31 2017, 9:52 AM

Add comments

This revision was automatically updated to reflect the committed changes.