This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Add XXEVAL TD pattern
ClosedPublic

Authored by tingwang on Aug 11 2022, 12:11 AM.

Details

Reviewers
nemanjai
shchenz
Group Reviewers
Restricted Project
Commits
rG12e1936f64f8: [PowerPC] Add XXEVAL TD pattern
Summary

Add xxeval TD pattern for P10 on: eqv, nor, or, xor.

Diff Detail

Event Timeline

tingwang created this revision.Aug 11 2022, 12:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2022, 12:11 AM
tingwang requested review of this revision.Aug 11 2022, 12:11 AM
shchenz added inline comments.Aug 11 2022, 2:59 AM
llvm/lib/Target/PowerPC/PPCInstrP10.td
2107

(nor 0, 0, 0) == 1
(and (vnot 0), (or 0, 0)) == 0 ?

tingwang added inline comments.Aug 11 2022, 5:14 AM
llvm/lib/Target/PowerPC/PPCInstrP10.td
2107

Oh, my formula is wrong... Good catch!

tingwang updated this revision to Diff 451843.Aug 11 2022, 7:04 AM

Fix pattern generation formula error.

shchenz accepted this revision as: shchenz.Aug 11 2022, 7:21 PM

LGTM

This revision is now accepted and ready to land.Aug 11 2022, 7:21 PM
This revision was landed with ongoing or failed builds.Aug 11 2022, 10:28 PM
This revision was automatically updated to reflect the committed changes.