[PATCH] D103788: [InstCombine] Eliminate casts to optimize ctlz operation

Datta Nagraj via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 12 01:22:16 PDT 2021


datta.nagraj updated this revision to Diff 351644.
datta.nagraj added a comment.

Do the opt only if the difference in bitwidth of zext src and dst is less than log2


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D103788/new/

https://reviews.llvm.org/D103788

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
  llvm/test/Transforms/InstCombine/zext-ctlz-trunc-to-ctlz-add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103788.351644.patch
Type: text/x-patch
Size: 6470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210612/c4164e78/attachment-0001.bin>


More information about the llvm-commits mailing list