[all-commits] [llvm/llvm-project] fcb529: [InstCombine]: Canonicalize to a mask when trunc n...

kper via All-commits all-commits at lists.llvm.org
Fri Oct 17 09:13:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fcb5293ad0a13b665cbaee26edf33cbfaab6404d
      https://github.com/llvm/llvm-project/commit/fcb5293ad0a13b665cbaee26edf33cbfaab6404d
  Author: kper <kevin.per at protonmail.com>
  Date:   2025-10-18 (Sat, 18 Oct 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-trunc.ll

  Log Message:
  -----------
  [InstCombine]: Canonicalize to a mask when trunc nuw (#163628)

The canonicalize is also triggered when the `trunc` is `nuw`.

Proof: https://alive2.llvm.org/ce/z/eWvWe3
Fixes: https://github.com/llvm/llvm-project/issues/162451



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list