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

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 6 09:33:58 PDT 2018


kparzysz updated this revision to Diff 141367.
kparzysz added a comment.
Herald added a subscriber: mehdi_amini.

Moving aggressive instcombine pass to before the regular instcombine, just to demonstrate the idea.


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
  lib/Transforms/IPO/PassManagerBuilder.cpp
  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.141367.patch
Type: text/x-patch
Size: 32223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180406/64236f80/attachment.bin>


More information about the llvm-commits mailing list