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

            Bug ID: 46197
           Summary: Failure to optimize out atoi when used as operand of
                    _tzcnt_u64
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: gabrav...@gmail.com
                CC: craig.top...@gmail.com, llvm-bugs@lists.llvm.org,
                    llvm-...@redking.me.uk, spatel+l...@rotateright.com

#include <x86intrin.h>

void f(char *s)
{
    _tzcnt_u64(atol(s));
}

This can be optimized to doing nothing.

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