https://llvm.org/bugs/show_bug.cgi?id=27162
Bug ID: 27162 Summary: Dead stores from lowered memset Product: libraries Version: trunk Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: Backend: AArch64 Assignee: unassignedb...@nondot.org Reporter: junb...@codeaurora.org CC: llvm-bugs@lists.llvm.org Classification: Unclassified Given the below C code : void foo (long *P, long n) { memset(P, 0, 32); P[0] = n; P[1] = n; P[2] = n; } Current trunk generate asm code like below : stp xzr, xzr, [x0, #16] stp xzr, xzr, [x0] stp x1, x1, [x0] str x1, [x0, #16] ret The lowered store instructions from memset are dead by the stores following the memset. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs