Page MenuHomePhabricator

[X86] Replace LEAs with INC/DEC
ClosedPublic

Authored by anadolskiy on Oct 26 2015, 3:42 AM.

Details

Summary

If possible and profitable, replace lea %reg, 1(%reg) and lea %reg, -1(%reg) with inc %reg and dec %reg respectively.

Diff Detail

Repository
rL LLVM

Event Timeline

anadolskiy updated this revision to Diff 38387.Oct 26 2015, 3:42 AM
anadolskiy retitled this revision from to [X86] Replace LEAs with INC/DEC.
anadolskiy updated this object.
anadolskiy added a reviewer: nadav.
nadav edited edge metadata.Oct 26 2015, 9:20 AM
nadav added a subscriber: nadav.

I don’t see a problem with this commit but please email llvm-commit and allow other developers to review this patch.

This revision was automatically updated to reflect the committed changes.