[test][InstCombine] Add a test case for volatile memcpy forwarding in InstCombine...
authorPatrick Walton <pcwalton@fb.com>
Sat, 29 Oct 2022 23:38:27 +0000 (16:38 -0700)
committerPatrick Walton <pcwalton@fb.com>
Sun, 30 Oct 2022 09:38:43 +0000 (02:38 -0700)
commit8357ff6f3d6d0582279d7cc4ee3db04ce2b46318
tree886230834fa6b50e66d980034cffb91adcbee807
parent74fb770de9399d7258a8eda974c93610cfde698e
[test][InstCombine] Add a test case for volatile memcpy forwarding in InstCombine, which is currently optimized incorrectly.

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.

Differential Revision: https://reviews.llvm.org/D137029
llvm/test/Transforms/InstCombine/memcpy-from-global.ll