Page MenuHomePhabricator

[RISCV] Add isel patterns to match vmacc/vmadd/vnmsub/vnmsac from add/sub and mul.

Authored by craig.topper on Jun 11 2021, 5:24 PM.

Diff Detail

Event Timeline

craig.topper created this revision.Jun 11 2021, 5:24 PM
craig.topper requested review of this revision.Jun 11 2021, 5:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2021, 5:24 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
frasercrmck added inline comments.Jun 18 2021, 2:59 AM

Comment here needs updating for the right opcodes

492 ↗(On Diff #351600)

Seems like this test is regressing. Is there a one-use check that may help here?

Limit to cases where mul has a single use. There may be a better heuristic here,
but this is a simple starting point.

frasercrmck accepted this revision.Jun 21 2021, 2:06 AM

LGTM, cheers!

This revision is now accepted and ready to land.Jun 21 2021, 2:06 AM
This revision was landed with ongoing or failed builds.Jun 21 2021, 11:29 AM
This revision was automatically updated to reflect the committed changes.