This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] Fold load/store + G_GEP + G_CONSTANT
ClosedPublic

Authored by Petar.Avramovic on Jul 31 2019, 5:05 AM.

Details

Summary

Fold load/store + G_GEP + G_CONSTANT when
immediate in G_CONSTANT fits into 16 bit signed integer.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan accepted this revision.Jul 31 2019, 10:09 AM

LGTM with a few nits.

lib/Target/Mips/MipsInstructionSelector.cpp
333 ↗(On Diff #212554)

Add space after the if.

335 ↗(On Diff #212554)

Ditto

This revision is now accepted and ready to land.Jul 31 2019, 10:09 AM
This revision was automatically updated to reflect the committed changes.
Petar.Avramovic marked 2 inline comments as done.Aug 1 2019, 2:50 AM