This is an archive of the discontinued LLVM Phabricator instance.

[test][InstCombine] Add a test case for volatile memcpy forwarding in InstCombine, which is currently optimized incorrectly.
ClosedPublic

Authored by pcwalton on Oct 29 2022, 5:15 PM.

Details

Summary

D136822 demonstrated that we currently delete volatile memcpys in InstCombine,
which we shouldn't do. This commit adds a test for this. A forthcoming commit
will fix it.

Diff Detail

Event Timeline

pcwalton created this revision.Oct 29 2022, 5:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2022, 5:15 PM
pcwalton requested review of this revision.Oct 29 2022, 5:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2022, 5:15 PM

Wasn't sure if this needed review, but I wanted to be safe.

nikic accepted this revision.Oct 30 2022, 12:52 AM

LGTM

Wasn't sure if this needed review, but I wanted to be safe.

Test additions generally don't require review.

This revision is now accepted and ready to land.Oct 30 2022, 12:52 AM