[LLVMdev] ctlz pattern

Craig Topper craig.topper at gmail.com
Thu Aug 15 21:13:32 PDT 2013


Are you looking for something other than calling __builtin_clz from c++ or
calling @llvm.ctlz.* instrinsic from IR?

I don't think we have anything that will auto converting a loop to ctlz or
anything like that. We only seem to have a detection for popcount loops.


On Thu, Aug 15, 2013 at 9:01 PM, reed kotler <rkotler at mips.com> wrote:

> Does anyone know some simple c/c++ code or .ll code which will cause this
> ctlz pattern to be emitted?
>
> Tia.
>
> Reed
>
>
> ______________________________**_________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>



-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130815/1d72b17d/attachment.html>


More information about the llvm-dev mailing list