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

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 10 03:32:18 PDT 2021


lebedev.ri added a comment.

In D103788#2810049 <https://reviews.llvm.org/D103788#2810049>, @lebedev.ri wrote:

> Right, it of course should be https://alive2.llvm.org/ce/z/wuRBBs

Note that this only works if the scalar bit width of original un-extended `%x` is at least `6`: https://alive2.llvm.org/ce/z/5ThC64
so i think we actually want to do https://alive2.llvm.org/ce/z/ZtZm4w


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103788



More information about the llvm-commits mailing list