[PATCH] D115480: [InstCombine] Fold icmp of truncated left shift

Hasyimi Bahrudin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 9 16:32:14 PST 2021


hasyimibhar added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/icmp-trunc-shl.ll:215
+; CHECK-LABEL: @ne_i32_to_i1(
+; CHECK-NEXT:    [[TMP1:%.*]] = icmp eq i32 [[A:%.*]], 0
+; CHECK-NEXT:    ret i1 [[TMP1]]
----------------
Just noticed the output is different for ne with truncate to i1. According to alive, this is correct: https://alive2.llvm.org/ce/z/pWkv74.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115480



More information about the llvm-commits mailing list