This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] Combine extending loads
ClosedPublic

Authored by Petar.Avramovic on Jan 18 2019, 8:07 AM.

Details

Summary

Use CombinerHelper to combine extending load instructions.
G_LOAD combined with G_ZEXT, G_SEXT or G_ANYEXT gives G_ZEXTLOAD,
G_SEXTLOAD or G_LOAD with same type as def of extending instruction respectively.
Similarly G_ZEXTLOAD combined with G_ZEXT gives G_ZEXTLOAD and
G_SEXTLOAD combined with G_SEXT gives G_SEXTLOAD with same type
as def of extending instruction.

Diff Detail

Repository
rL LLVM

Event Timeline

This revision is now accepted and ready to land.Jan 23 2019, 12:13 PM
This revision was automatically updated to reflect the committed changes.