This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

paquette created this revision.Feb 10 2021, 3:00 PM
paquette requested review of this revision.Feb 10 2021, 3:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2021, 3:00 PM
aemerson accepted this revision.Feb 10 2021, 3:04 PM
This revision is now accepted and ready to land.Feb 10 2021, 3:04 PM