| Issue |
238018
|
| Summary |
[MemCpyOpt] Miscompilation due to missing EarliestEscapeAnalysis invalidation
|
| Labels |
new issue
|
| Assignees |
SavchenkoValeriy
|
| Reporter |
SavchenkoValeriy
|
In the following example: https://llvm.godbolt.org/z/W8qGhqh17
1. A query about `@f` stores `%a`'s earliest capture in the cache as `@esc`.
2. moveUp lifts `%dst = @opaque(%a)` above `@esc`. Now `@opaque` is the first capture of `%a`, but the cache still says `@esc`.
3. Using that stale entry, AA concludes that `memcpy(%dst <- %s)` can't write `%a`. So the final `memcpy(%out <- %a)` is forwarded to read `%orig` instead.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs