This is an archive of the discontinued LLVM Phabricator instance.

[ExpandMemCmp] Properly expand `bcmp` to an equality pattern.
ClosedPublic

Authored by courbet on Apr 15 2022, 2:14 AM.

Details

Summary

Before that change, constant-size bcmp would miss an opportunity to generate
a more efficient equality pattern and would generate a -1/0-1 pattern
instead.

Diff Detail

Event Timeline

courbet created this revision.Apr 15 2022, 2:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2022, 2:14 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
courbet requested review of this revision.Apr 15 2022, 2:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 15 2022, 2:14 AM
courbet updated this revision to Diff 423053.Apr 15 2022, 2:17 AM

Rebase on base test.

courbet added a subscriber: mvels.
gchatelet accepted this revision.Apr 15 2022, 2:20 AM
This revision is now accepted and ready to land.Apr 15 2022, 2:20 AM
nikic accepted this revision.Apr 15 2022, 2:23 AM
nikic added a subscriber: nikic.

LG

courbet updated this revision to Diff 423054.Apr 15 2022, 2:26 AM

Update llc tests too.

This revision was landed with ongoing or failed builds.Apr 15 2022, 2:33 AM
This revision was automatically updated to reflect the committed changes.