This is an archive of the discontinued LLVM Phabricator instance.

[CSKY] Add more patterns to select FNMUL
ClosedPublic

Authored by benshi001 on Jul 13 2023, 3:13 AM.

Diff Detail

Event Timeline

benshi001 created this revision.Jul 13 2023, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2023, 3:13 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
benshi001 requested review of this revision.Jul 13 2023, 3:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2023, 3:13 AM
zixuan-wu added inline comments.Jul 28 2023, 1:01 AM
llvm/lib/Target/CSKY/CSKYInstrInfoF1.td
146

(f32 (fmul sFPR32Op:$vrx (fneg sFPR32Op:$vry))) is also possible?

benshi001 updated this revision to Diff 545147.Jul 28 2023, 7:01 AM
benshi001 marked an inline comment as done.Jul 28 2023, 7:02 AM
benshi001 added inline comments.
llvm/lib/Target/CSKY/CSKYInstrInfoF1.td
146

We need not specify it explictly, since fmul is commutable operation. I have added tests for both cases.

benshi001 marked an inline comment as done.Jul 28 2023, 7:02 AM
zixuan-wu accepted this revision.Jul 30 2023, 7:14 PM

Good. Thanks.

This revision is now accepted and ready to land.Jul 30 2023, 7:14 PM
This revision was landed with ongoing or failed builds.Jul 30 2023, 9:13 PM
This revision was automatically updated to reflect the committed changes.