[all-commits] [llvm/llvm-project] 4f7dc1: [InstCombine] Fold (add (add A, 1), (sext (icmp ne...

Ruhung via All-commits all-commits at lists.llvm.org
Sun Jan 12 07:52:19 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f7dc1b55ae5b8ed1a36dd941ef4f9920bfdac8d
      https://github.com/llvm/llvm-project/commit/4f7dc1b55ae5b8ed1a36dd941ef4f9920bfdac8d
  Author: Ruhung <143302514+Ruhung at users.noreply.github.com>
  Date:   2025-01-12 (Sun, 12 Jan 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    A llvm/test/Transforms/InstCombine/add-sext-icmp.ll

  Log Message:
  -----------
  [InstCombine] Fold (add (add A, 1), (sext (icmp ne A, 0))) to call umax(A, 1) (#122491)

Transform (add (add A, 1), (sext (icmp ne A, 0))) into call umax(A, 1).

Fixes #121853.

Alive2: https://alive2.llvm.org/ce/z/TweTan



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