This is an archive of the discontinued LLVM Phabricator instance.

FMA + FNEG combinations - fixed masked version
ClosedPublic

Authored by delena on Oct 26 2016, 6:38 AM.

Details

Summary

Combining of FMA and FNEG fails when FMA is a scalar intrinsic with mask.

Diff Detail

Repository
rL LLVM

Event Timeline

delena updated this revision to Diff 75869.Oct 26 2016, 6:38 AM
delena retitled this revision from to FMA + FNEG combinations - fixed masked version.
delena updated this object.
delena added reviewers: craig.topper, igorb.
delena set the repository for this revision to rL LLVM.
delena added a subscriber: llvm-commits.
craig.topper added inline comments.Oct 26 2016, 8:43 PM
../lib/Target/X86/X86ISelLowering.cpp
31283 ↗(On Diff #75869)

Should we also check that SELECTS also uses the result of the FMA node?

delena updated this revision to Diff 76054.Oct 27 2016, 9:22 AM

Updated according to Craig's comments.

craig.topper accepted this revision.Oct 28 2016, 9:40 PM
craig.topper edited edge metadata.

LGTM

This revision is now accepted and ready to land.Oct 28 2016, 9:40 PM
This revision was automatically updated to reflect the committed changes.