Details
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
LGTM, thanks!
| llvm/test/Transforms/DeadStoreElimination/MSSA/libcalls.ll | ||
|---|---|---|
| 277 | nit: noalias should not be needed here and the other tests, as %stack.ptr is to an alloca and LLVM should be able to determine noalias without the extra help.  | |
| llvm/lib/Analysis/MemoryLocation.cpp | ||
|---|---|---|
| 262 | Thinking about this again, I am not sure if this is a good idea to do for the destination argument, because it gives the impression that exactly LenCI bytes are written, when this is not the case. I think for reads the larger size is the conservative option and fine, but for writing it could mis-lead clients into thinking the call writes more bytes than it actually does, leading to potentially invalid optimizations.  | |
| llvm/lib/Analysis/MemoryLocation.cpp | ||
|---|---|---|
| 262 | Makes sense, I will prepare fix to skip doing this for dst.  | |
Thinking about this again, I am not sure if this is a good idea to do for the destination argument, because it gives the impression that exactly LenCI bytes are written, when this is not the case.
I think for reads the larger size is the conservative option and fine, but for writing it could mis-lead clients into thinking the call writes more bytes than it actually does, leading to potentially invalid optimizations.