[llvm] [memcpyopt] handle memcpy from memset in more cases (PR #140954)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 01:27:50 PDT 2025


================
@@ -187,6 +187,54 @@ define void @test_write_before_memset_in_both_regions(ptr %result) {
   ret void
 }
 
+define void @test_offset_memset(ptr %result) {
----------------
dianqk wrote:

```suggestion
define void @test_negative_offset_memset(ptr %result) {
```

https://github.com/llvm/llvm-project/pull/140954


More information about the llvm-commits mailing list