[all-commits] [llvm/llvm-project] 4e0dd0: [InstCombine] Combine trunc (lshr X, BW-1) to i1 -...

mayanksolanki393 via All-commits all-commits at lists.llvm.org
Mon Jun 16 00:47:13 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e0dd007ac6a7b7e0a284062b61c6d22250337df
      https://github.com/llvm/llvm-project/commit/4e0dd007ac6a7b7e0a284062b61c6d22250337df
  Author: mayanksolanki393 <mayanksolanki393 at gmail.com>
  Date:   2025-06-16 (Mon, 16 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/logical-select.ll
    A llvm/test/Transforms/InstCombine/trunc-lshr.ll

  Log Message:
  -----------
  [InstCombine] Combine trunc (lshr X, BW-1) to i1 --> icmp slt X, 0 (#142593) (#143846)

Fixes #142593, the issue was fixed using the suggestion on the ticket
itself.

Godbolt: https://godbolt.org/z/oW5b74jc4
alive2 proof: https://alive2.llvm.org/ce/z/QHnD7e



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