This is an archive of the discontinued LLVM Phabricator instance.

[GISel] Add new combines for G_FMUL with constant operands
Needs RevisionPublic

Authored by mkitzan on May 19 2022, 12:20 PM.



Patch adds new GICombineRules for G_FMUL:

G_FMUL(G_FMUL(x, c0), c1) -> G_FMUL(x, c0 * c1) (unsafe fp math only)
G_FMUL(G_FADD(x, x), c) -> G_FMUL(x, c * 2.0) (unsafe fp math only)

Patch additionally adds new combine tests for AArch64 target for these new rules.
(Split off from

Diff Detail

Event Timeline

mkitzan created this revision.May 19 2022, 12:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2022, 12:20 PM
mkitzan requested review of this revision.May 19 2022, 12:20 PM
arsenm requested changes to this revision.Aug 17 2023, 3:46 PM

Can you try again with the new tablegen pattern support?

This revision now requires changes to proceed.Aug 17 2023, 3:46 PM