This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] exclude more icmps in LSR which is converted in later hardware loop pass
ClosedPublic

Authored by shchenz on Jul 16 2019, 6:14 AM.

Details

Summary

In https://reviews.llvm.org/D63477, we add a target hook canSaveCmp to let LSR get hardware loop converting result, so LSR can choose more accurate formulae set.

Here we use the target hook for more icmp instead of equality cmp as hardware loop pass can convert many icmps including equality cmp.

Diff Detail

Repository
rL LLVM

Event Timeline

shchenz created this revision.Jul 16 2019, 6:14 AM
hfinkel accepted this revision.Jul 24 2019, 8:52 AM

LGTM

This revision is now accepted and ready to land.Jul 24 2019, 8:52 AM
This revision was automatically updated to reflect the committed changes.