[PATCH] D87971: [MemLoc] Support lllvm.memcpy.inline in MemoryLocation::getForArgument
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 05:02:19 PDT 2020
xbolva00 added a comment.
Thanks!
================
Comment at: llvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll:22
+define void @test2(i8* noalias %A, i8* noalias %B) {
; CHECK-LABEL: @test2(
+; CHECK-NEXT: store i8 0, i8* [[A:%.*]], align 1
----------------
fhahn wrote:
> xbolva00 wrote:
> > hmm, no aliasing pointers - shouldn't we remove this store?
> 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.
Added FIXME.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87971/new/
https://reviews.llvm.org/D87971
More information about the llvm-commits
mailing list