Issue 90459
Summary Redundant load is not removed around memcpy
Labels new issue
Assignees
Reporter vladimirradosavljevic
    In the following example:
```
#include <string.h>

int test(int *a, int *b) {
  *a = 5;
  memcpy(b, a, 16384);
  return *b;
}
```
 LLVM is not able to remove `*b` load, whereas GCC is able to do so, as it is shown [here](https://godbolt.org/z/Mchd4fo5f).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to