A G_MUL + G_PTR_ADD can also be folded into a madd. So, conservatively, we shouldn't combine when the G_MUL is used by a G_PTR_ADD either.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D96457
[AArch64][GlobalISel] Don't perform the mul const combine with G_PTR_ADD ClosedPublic Authored by paquette on Feb 10 2021, 3:00 PM.
Details Summary A G_MUL + G_PTR_ADD can also be folded into a madd. So, conservatively, we shouldn't combine when the G_MUL is used by a G_PTR_ADD either.
Diff Detail Event TimelineHerald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka. · View Herald TranscriptFeb 10 2021, 3:00 PM This revision is now accepted and ready to land.Feb 10 2021, 3:04 PM Closed by commit rG1514f3b2c872: [AArch64][GlobalISel] Don't perform the mul const combine with G_PTR_ADD (authored by paquette). · Explain WhyFeb 10 2021, 3:31 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 322833 llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizercombiner-mulpow2.mir
|