This is an archive of the discontinued LLVM Phabricator instance.

[mips] Optimize materialization of i64 constants
ClosedPublic

Authored by sdardis on Jun 24 2016, 8:57 AM.

Details

Summary

Avoid MipsAnalyzeImmediate usage if the constant fits in an 32-bit
integer. This allows us to generate the same instructions for the
materialization of the same constants regardless the width of their
type.

Patch by: Vasileios Kalintiris

Contributions by: Simon Dardis

Diff Detail

Event Timeline

sdardis updated this revision to Diff 61802.Jun 24 2016, 8:57 AM
sdardis retitled this revision from to [mips] Optimize materialization of i64 constants.
sdardis updated this object.
sdardis added a reviewer: dsanders.
sdardis set the repository for this revision to rL LLVM.
sdardis added a subscriber: llvm-commits.
dsanders accepted this revision.Jul 22 2016, 3:41 AM
dsanders edited edge metadata.

LGTM with an indentation nit

lib/Target/Mips/MipsInstrInfo.td
2463

Indentation

This revision is now accepted and ready to land.Jul 22 2016, 3:41 AM
sdardis closed this revision.Jul 25 2016, 3:58 AM

Thanks, committed rL276628.