This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ] Bugfix in expansion of memmem operations.
ClosedPublic

Authored by jonpa on May 10 2023, 12:31 AM.

Details

Summary

Since NC, OC, and XC clobber CC, the EXRL_Pseudo targeting these must also be
marked to do so.

Patch by uweigand.

Fixes: https://github.com/llvm/llvm-project/issues/62572

Diff Detail

Event Timeline

jonpa created this revision.May 10 2023, 12:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 12:31 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
jonpa requested review of this revision.May 10 2023, 12:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 12:31 AM
uweigand accepted this revision.May 10 2023, 1:34 AM

LGTM, thanks!

This revision is now accepted and ready to land.May 10 2023, 1:34 AM
This revision was landed with ongoing or failed builds.May 10 2023, 2:06 AM
This revision was automatically updated to reflect the committed changes.
jonpa updated this revision to Diff 520945.May 10 2023, 2:56 AM

The new test case when run with expensive checks showed that the NoPHIs flag needs to be cleared.

Not sure why this has not been reported before - perhaps due to the new .mir test case starting before finalize-isel.

Should I pre-commit that and then also backport both patches?

Alternatively, we could just stop the test after finalize-isel and make sure the CC operand is there as needed...

jonpa reopened this revision.May 10 2023, 2:57 AM
This revision is now accepted and ready to land.May 10 2023, 2:57 AM
jonpa requested review of this revision.May 10 2023, 2:57 AM
uweigand accepted this revision.May 10 2023, 3:09 AM

Good catch, interesting that we didn't notice this before ...

New version LGTM, thanks!

This revision is now accepted and ready to land.May 10 2023, 3:09 AM
This revision was landed with ongoing or failed builds.May 10 2023, 3:42 AM
This revision was automatically updated to reflect the committed changes.