[llvm-bugs] [Bug 52143] New: memset not generated for ** array zero-initialization

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 11 14:42:48 PDT 2021


            Bug ID: 52143
           Summary: memset not generated for ** array zero-initialization
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: beginner
          Severity: enhancement
          Priority: P
         Component: Loop Optimizer
          Assignee: unassignedbugs at nondot.org
          Reporter: pavel.iliin at arm.com
                CC: llvm-bugs at lists.llvm.org

clang at -O2 missed opportunity to generate memset for 
unsigned** a;
void foo( int max )
  for (int i = 0; i <= max; ++i) 
    a[i] = 0;
and left the loop, while gcc succeeded to do this:
X86-64 https://godbolt.org/z/oK59vf66n
AArch64 https://godbolt.org/z/G53W1vz7W

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211011/767968a1/attachment-0001.html>

More information about the llvm-bugs mailing list