[PATCH] D23134: Make cltz and cttz zero undef when the operand cannot be zero in InstCombine

Amaury SECHET via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 12:59:16 PDT 2016


deadalnix created this revision.
deadalnix added reviewers: majnemer, spatel.
deadalnix added a subscriber: llvm-commits.

Also add popcount(n) == bitsize(n)  -> n == -1 transformation.

https://reviews.llvm.org/D23134

Files:
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  lib/Transforms/InstCombine/InstCombineCompares.cpp
  test/Transforms/InstCombine/intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23134.66700.patch
Type: text/x-patch
Size: 5513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160803/58c3b7fa/attachment.bin>


More information about the llvm-commits mailing list