https://bugs.llvm.org/show_bug.cgi?id=47420

            Bug ID: 47420
           Summary: [SystemZ] '0 == memcmp(...)' not optimized anymore
           Product: libraries
           Version: trunk
          Hardware: PC
               URL: https://godbolt.org/z/q45ocv
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: SystemZ
          Assignee: unassignedb...@nondot.org
          Reporter: slavomir.kuc...@broadcom.com
                CC: llvm-bugs@lists.llvm.org, uweig...@de.ibm.com

Starting with LLVM 9, the following code

int test1(const char* l, const char* r) {
    return memcmp(l,r,2) == 0;
}

is basically transformed into 

int test1(const char* l, const char* r) {
    return bcmp(l,r,2) == 0;
}

which is not optimized by the SystemZ backend anymore - an actual function call
is generated.

https://godbolt.org/z/q45ocv

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to