Page MenuHomePhabricator

[PowerPC] Change CRNOT to a code gen single operand instruction
ClosedPublic

Authored by nemanjai on Sep 9 2022, 6:54 AM.

Details

Summary

Inputs to crnor can come from operands with chains so if it is being used simply to negate such an operand, the repeated input cannot be CSE'd. This patch just adds a code-gen only instruction for this that takes a single input and duplicates it in the encoding of the underlying crnor.

Diff Detail

Event Timeline

nemanjai created this revision.Sep 9 2022, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2022, 6:54 AM
nemanjai requested review of this revision.Sep 9 2022, 6:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 9 2022, 6:54 AM
nemanjai added inline comments.Sep 26 2022, 8:23 AM
llvm/lib/Target/PowerPC/PPCInstrInfo.td
2484

Looks like I accidentally removed this line. I'll get rid of the unrelated change.

This revision is now accepted and ready to land.Sep 26 2022, 5:26 PM
lei accepted this revision as: lei.Sep 28 2022, 2:46 PM
lei added a subscriber: lei.

LGTM
Thx