This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Use ABDU to replace ABDS when operands are known to be zero extended
AbandonedPublic

Authored by lkail on May 21 2023, 8:52 PM.

Details

Reviewers
RKSimon
shchenz
qiucf
nemanjai
Group Reviewers
Restricted Project
Summary

For pwr9 cpu, we can save xvnegsp instruction. Alive2 proof https://alive2.llvm.org/ce/z/LWaEEg.

Diff Detail

Event Timeline

lkail created this revision.May 21 2023, 8:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2023, 8:52 PM
lkail requested review of this revision.May 21 2023, 8:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2023, 8:52 PM
lkail retitled this revision from [PowerPC] Use ABDU node when operands are known to be zero extended to [PowerPC] Use ABDU to replace ABDS when operands are known to be zero extended.May 21 2023, 9:16 PM
lkail updated this revision to Diff 524156.May 21 2023, 9:29 PM
lkail added reviewers: Restricted Project, RKSimon, shchenz, qiucf, nemanjai.

Why not handle this generically in DAGCombiner::visitABD?

lkail abandoned this revision.Jun 20 2023, 4:50 AM

Simon has got a better solution.