[all-commits] [llvm/llvm-project] 8c7719: [InstCombine] smin(smax(X, -1), 1) -> scmp(X, 0) a...

AZero13 via All-commits all-commits at lists.llvm.org
Mon Jun 30 06:44:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c7719183558695b3f9e088351f4a88fda46e1b4
      https://github.com/llvm/llvm-project/commit/8c7719183558695b3f9e088351f4a88fda46e1b4
  Author: AZero13 <gfunni234 at gmail.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/compare-3way.ll

  Log Message:
  -----------
  [InstCombine] smin(smax(X, -1), 1) -> scmp(X, 0) and smax(smin(X, 1), -1) -> scmp(X, 0) (#145736)

Motivating case: https://godbolt.org/z/Wxcc51jcj

Alive2: https://alive2.llvm.org/ce/z/-bPPAg



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