[PATCH] D47348: [LoopIdiomRecognize] Only convert loops to ctlz if we can prove that the input is non-negative.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 24 16:09:51 PDT 2018


craig.topper updated this revision to Diff 148498.
craig.topper added a comment.

Add the code changes.


https://reviews.llvm.org/D47348

Files:
  lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  test/Transforms/LoopIdiom/ARM/ctlz.ll
  test/Transforms/LoopIdiom/X86/ctlz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47348.148498.patch
Type: text/x-patch
Size: 10812 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/2f8779a0/attachment.bin>


More information about the llvm-commits mailing list