This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Improve i32 and-or-and on BPS.Select64 path to generate single rlwimi
AbandonedPublic

Authored by tingwang on Feb 18 2022, 12:53 AM.

Details

Reviewers
nemanjai
shchenz
jsji
Group Reviewers
Restricted Project
Summary

Some i32 logic operations that have operators without signext are effectively 32-bit operations, and should have been handled by Select32 to generate single rlwimi. However they are combined to 64-bit operations during DAGCombineExtBoolTrunc, and BPS.Select64 is not able to detect the simple pattern.

This patch looks for opportunities on Select64 path, and forward them to Select32 for proper handling to generate single rlwimi instruction.

Diff Detail

Event Timeline

tingwang created this revision.Feb 18 2022, 12:53 AM
tingwang requested review of this revision.Feb 18 2022, 12:53 AM
jsji resigned from this revision.Jun 2 2022, 7:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2022, 7:50 AM
tingwang abandoned this revision.Jul 18 2022, 11:15 PM

Close as real scenario for the benefit pattern is unclear.