[PATCH] D124590: [InstCombine] add casts from splat-a-bit pattern if necessary

Chenbing.Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 28 19:22:47 PDT 2022


Chenbing.Zheng added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/sext.ll:397
+
+define i16 @smear_set_bit_different_dest_type_extra_use(i32 %x) {
+; CHECK-LABEL: @smear_set_bit_different_dest_type_extra_use(
----------------
For this case, we get a correct result, but it is longer. Should I limit trunc one-use to break it?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124590



More information about the llvm-commits mailing list