[PATCH] D45173: [InstCombine] Recognize idioms for ctpop and ctlz

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 2 14:35:59 PDT 2018


kparzysz updated this revision to Diff 140693.
kparzysz added a comment.

Removed the explicit check for subtraction when checking ctlz pattern.

Added a check to avoid optimizing compiler-rt functions.


Repository:
  rL LLVM

https://reviews.llvm.org/D45173

Files:
  lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  lib/Transforms/AggressiveInstCombine/AggressiveInstCombineInternal.h
  lib/Transforms/AggressiveInstCombine/BitCountCombine.cpp
  lib/Transforms/AggressiveInstCombine/CMakeLists.txt
  test/Transforms/AggressiveInstCombine/ctlz-combine.ll
  test/Transforms/AggressiveInstCombine/ctlz-rt.ll
  test/Transforms/AggressiveInstCombine/ctpop-combine.ll
  test/Transforms/AggressiveInstCombine/ctpop-rt.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45173.140693.patch
Type: text/x-patch
Size: 25203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180402/cffd4e58/attachment.bin>


More information about the llvm-commits mailing list