This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Implement TargetLowering::hasAndNot() for more optimization chances
ClosedPublic

Authored by gonglingqin on Aug 20 2022, 1:06 AM.

Diff Detail

Event Timeline

gonglingqin created this revision.Aug 20 2022, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2022, 1:06 AM
gonglingqin requested review of this revision.Aug 20 2022, 1:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 20 2022, 1:06 AM
xen0n added a comment.Aug 20 2022, 9:27 PM

The changes LGTM but the patch title could be a bit more specific. "Override hasAndNot" is "what you have done", but we generally prefer "what you intend to do by making this change" -- description of your intent.

I think a title like "Implement TargetLowering::hasAndNot for more optimization chances" could be better.

The changes LGTM but the patch title could be a bit more specific. "Override hasAndNot" is "what you have done", but we generally prefer "what you intend to do by making this change" -- description of your intent.

I think a title like "Implement TargetLowering::hasAndNot for more optimization chances" could be better.

Thanks, I will change it.

Address @xen0n's comments.

gonglingqin retitled this revision from [LoongArch] Override TargetLowering::hasAndNot() to [LoongArch] Implement TargetLowering::hasAndNot() for more optimization chances.Aug 21 2022, 7:22 PM
xen0n accepted this revision.Aug 23 2022, 12:57 AM
This revision is now accepted and ready to land.Aug 23 2022, 12:57 AM
This revision was landed with ongoing or failed builds.Aug 24 2022, 2:33 AM
This revision was automatically updated to reflect the committed changes.