This is an archive of the discontinued LLVM Phabricator instance.

[M68k] Refactor codegen patterns for logic operations and add tests for it
ClosedPublic

Authored by Jim on Jun 21 2021, 2:46 AM.

Details

Summary

Refactor pat for and, or and xor operation and add missing tests for it

Diff Detail

Event Timeline

Jim created this revision.Jun 21 2021, 2:46 AM
Jim requested review of this revision.Jun 21 2021, 2:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2021, 2:46 AM
Jim added a reviewer: myhsu.Jun 21 2021, 2:47 AM
myhsu added a comment.Jun 21 2021, 8:53 PM

Thanks for the refactoring, it does look cleaner now.
But IIRC people usually use the term bitwise AND/OR/XOR instructions instead of "logical" right? The ISD namespace also classifies these node types as bitwise operators.

Jim updated this revision to Diff 353546.Jun 21 2021, 9:10 PM

Rename Logic to Bitwise.

myhsu accepted this revision.Jun 22 2021, 9:44 PM

LGTM Cheers!

This revision is now accepted and ready to land.Jun 22 2021, 9:44 PM