This is an archive of the discontinued LLVM Phabricator instance.

[mips] Account for constant-zero operands in ADDE nodes.
ClosedPublic

Authored by vkalintiris on Feb 26 2015, 5:59 AM.

Details

Summary

We identify the cases where the operand to an ADDE node is a constant
zero. In such cases, we can avoid generating an extra ADDu instruction
disguised as an identity move alias (ie. addu $r, $r, 0 --> move $r, $r).

Diff Detail

Repository
rL LLVM

Event Timeline

vkalintiris retitled this revision from to [mips] Account for constant-zero operands in ADDE nodes..
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.Feb 26 2015, 7:52 AM
dsanders edited edge metadata.

LGTM. Thanks for cleaning this case up.

This revision is now accepted and ready to land.Feb 26 2015, 7:52 AM
This revision was automatically updated to reflect the committed changes.