InstCombine can replace memcpy to an alloca with a pointer directly to the
source in certain cases. Unfortunately, it also did so for volatile memcpys.
This patch makes it stop doing that.
This was discovered in D136822.
Differential D137031
[InstCombine] Avoid deleting volatile memcpys. pcwalton on Oct 29 2022, 5:36 PM. Authored by
Details
InstCombine can replace memcpy to an alloca with a pointer directly to the This was discovered in D136822.
Diff Detail
Event TimelineComment Actions I noticed that the memcpy in the asan test case is volatile without any changes, so I shouldn't need to touch that test case now. Comment Actions LGTM FYI If you add "Depends on D137029." when submitting the review, this will add a child revision and make the pre-commit CI work. |