This is an archive of the discontinued LLVM Phabricator instance.

[mips] Optimize code generation for 64-bit variable shift instructions.
ClosedPublic

Authored by vkalintiris on Feb 4 2015, 9:50 AM.

Details

Summary

The 64-bit version of the variable shift instructions uses the
shift_rotate_reg class which uses a GPR32Opnd to specify the variable
shift amount. With this patch we avoid the generation of a redundant
SLL instruction for the variable shift instructions in 64-bit targets.

Diff Detail

Repository
rL LLVM

Event Timeline

vkalintiris updated this revision to Diff 19329.Feb 4 2015, 9:50 AM
vkalintiris retitled this revision from to [mips] Optimize code generation for 64-bit variable shift instructions..
vkalintiris updated this object.
vkalintiris edited the test plan for this revision. (Show Details)
vkalintiris added a reviewer: dsanders.
vkalintiris added a subscriber: Unknown Object (MLST).
dsanders accepted this revision.Apr 21 2015, 3:20 AM
dsanders edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 21 2015, 3:20 AM
This revision was automatically updated to reflect the committed changes.