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

            Bug ID: 50811
           Summary: [alias] Missing optimization for __restrict
           Product: libraries
           Version: 11.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Global Analyses
          Assignee: unassignedb...@nondot.org
          Reporter: zhongyu...@tom.com
                CC: llvm-bugs@lists.llvm.org

base on https://gcc.godbolt.org/, I test the following simple case with newest
x86-64 clang 12.0.0, foo don't return false directly even with -O3 option.

int foo (int * __restrict a, int * __restrict b)
{
  return a==b;
}


==== x86-64 clang 12.0.0 -O3 -S  -g0 ============

foo(int*, int*):                             # @foo(int*, int*)
        .cfi_startproc
        xor     eax, eax
        cmp     rdi, rsi
        sete    al
        ret

-- 
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