This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Implement isMaskAndCmp0FoldingBeneficial
ClosedPublic

Authored by nemanjai on Apr 25 2018, 7:02 AM.

Details

Summary

Sinking the and closer to a compare against zero is beneficial on PPC as it allows us to emit record-form instructions. In the future, we may expand this to a larger set of operations that feed compares against zero since PPC has lots of record-form instructions.

Diff Detail

Repository
rL LLVM

Event Timeline

nemanjai created this revision.Apr 25 2018, 7:02 AM
This revision is now accepted and ready to land.Apr 25 2018, 12:36 PM
This revision was automatically updated to reflect the committed changes.