craig.topper added a comment.

Rethinking that. Since __builtin_clz is undefined for 0, I think we should have 
clang builtins, but we should use llvm.ctlz with false for the second argument 
as their implementation. See X86::BI__builtin_ia32_lzcnt_u32 for example.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121915/new/

https://reviews.llvm.org/D121915

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to