Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test][InstCombine] Add tests for removing memcpy to an alloca that i…
…s passed to a readonly nocapture function parameter, in preparation for D136822. This commit adds tests to Transforms/InstCombine/memcpy-from-global.ll that test various situations involving memcpy from a constant to an alloca that is then passed to function parameters with various attributes. The forthcoming D136822 allows InstCombine to remove these memcpys if they're passed to a single readonly nocapture parameter. Differential Revision: https://reviews.llvm.org/D137033
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters