This is an archive of the discontinued LLVM Phabricator instance.

[GISel]: New Opcode G_FMA for fused multiply addition
ClosedPublic

Authored by aditya_nandakumar on Jun 19 2017, 4:12 PM.

Details

Summary

Also translate fma intrinsic to this opcode.

Diff Detail

Repository
rL LLVM

Event Timeline

dsanders accepted this revision.Jun 20 2017, 8:54 AM

LGTM with a nit.

include/llvm/Target/GenericOpcodes.td
392

Is this $src1 + ($src2 * $src3) or ($src1 * $src2) + $src3? Could you add a comment indicating how it should be read?

394

This is correct but only because isCommutable also indicates that there are three operands and this has four. Ideally we'd improve on that but I don't think it's a task for this patch.

This revision is now accepted and ready to land.Jun 20 2017, 8:54 AM

Submitted in r305824