This is an archive of the discontinued LLVM Phabricator instance.

[NFC][PowerPC] Remove unused node PPCISD::VMADDFP and PPCISD::VNMSUBFP
ClosedPublic

Authored by steven.zhang on May 22 2020, 4:23 AM.

Details

Summary

These two nodes were added by 69caef2b781130a7d0eeaf8898eb346b6423ae03 in 2005 and they are not used by PowerPC backend anymore. And the ISD::FMA is a prefer way for VMADDFP if we really want to create that node. For VNMSUBFP, we will also add a more generic node FNMSUB in D76585 if we really want it.

Diff Detail

Event Timeline

steven.zhang created this revision.May 22 2020, 4:23 AM
steven.zhang added a reviewer: Restricted Project.May 22 2020, 4:23 AM
qiucf added a comment.May 24 2020, 8:08 PM

Thanks for doing this. Actually, we can't generate vnmsubfp for expected pattern now, since fneg is illegal for v4f32 type: (set v4f32:$vD, (fneg (fma v4f32:$vA, v4f32:$vC, (fneg v4f32:$vB)))). We should be able to handle this after D76585 landed.

qiucf accepted this revision as: qiucf.Jun 1 2020, 7:43 PM

LGTM

This revision is now accepted and ready to land.Jun 1 2020, 7:43 PM
This revision was automatically updated to reflect the committed changes.