> Expose the llvm.cttz /llvm.ctlz with 1 as second argument as new
> __builtin_cttz / __builtin_ctlz builtins and teach people to use those?
> 
> Joerg

So the new ones would unconditionally indicate "defined for zero" and we'd
make the old ones unconditionally indicate "undef for zero"?  That still
lets us eliminate the ForZeroUndef predicates, and if we fix lzcntintrin.h
to use the new ones that fixes the miscompile problem; but I have to wonder
about introducing a miscompile for ARM/PPC/MIPS users of the old builtin.

--paulr


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to