Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll | ||
---|---|---|
119 | why pass -1 as length? That make the function be UB? It would probably also be better to just pass in 2 noalias pointers, rather than allocas. That way the memcpy call won't be removed? | |
llvm/test/Transforms/DeadStoreElimination/MSSA/memset-and-memcpy.ll | ||
103 | nit: tab? Same below. |
llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll | ||
---|---|---|
119 | -1 is also used at line 18. |
llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll | ||
---|---|---|
119 | yeah, I don't think it really makes sense there either? |
llvm/test/Transforms/DeadStoreElimination/MSSA/memset-and-memcpy.ll | ||
---|---|---|
103 | Original test case ("ret void" line) is wrongly formatted. |
llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll | ||
---|---|---|
23–25 | hmm, no aliasing pointers - shouldn't we remove this store? |
LGTM, thanks for also improving the test case!
llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll | ||
---|---|---|
23–25 | Yes that looks like a missed optimization that was hidden by the fact that the store got removed because it was to an alloca that was never read! Thank you very much for improving the test so that it exposes this. Not sure what is going on, but it might be good to add a TODO/FIXME comment. |
Thanks!
llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll | ||
---|---|---|
23–25 | Added FIXME. |
hmm, no aliasing pointers - shouldn't we remove this store?