This is an archive of the discontinued LLVM Phabricator instance.

[Power9] Remove the PPCISD::XXREVERSE as it has completely the same semantics of ISD::BSWAP
ClosedPublic

Authored by steven.zhang on Nov 25 2019, 1:11 AM.

Details

Summary

This is a follow up patch with https://reviews.llvm.org/D70436. The custom node PPCISD::XXREVERSE was added by commit https://reviews.llvm.org/D33690, which has completely the same semantics of generic node ISD::BSWAP.
We need to clean up it as we have the combine rules for bswap in the base class, while nothing for xxreverse.

Diff Detail

Event Timeline

steven.zhang created this revision.Nov 25 2019, 1:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2019, 1:11 AM
steven.zhang edited the summary of this revision. (Show Details)Nov 25 2019, 1:15 AM
nemanjai accepted this revision.Nov 25 2019, 4:10 AM

Thanks for cleaning this up. This seems completely obvious and non-controversial to me. Feel free to commit once the dependent patch lands.

This revision is now accepted and ready to land.Nov 25 2019, 4:10 AM
This revision was automatically updated to reflect the committed changes.