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

Datta Nagraj via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 08:08:36 PDT 2021


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

Check if size of zext src and trunc dst are same and above 5 bits


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.351181.patch
Type: text/x-patch
Size: 5802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210610/29eb977a/attachment.bin>


More information about the llvm-commits mailing list