[all-commits] [llvm/llvm-project] 2bec8d: [InstCombine] Fold X + Y + C u< X

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Apr 25 03:53:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bec8d6d59a1c90f2593040fb2b4eb339d83f8c9
      https://github.com/llvm/llvm-project/commit/2bec8d6d59a1c90f2593040fb2b4eb339d83f8c9
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-add.ll
    M llvm/test/Transforms/InstCombine/result-of-add-of-negative-or-zero-is-non-zero-and-no-underflow.ll

  Log Message:
  -----------
  [InstCombine] Fold X + Y + C u< X

This is a variation on the X + Y u< X fold with an extra constant.
Proof: https://alive2.llvm.org/ce/z/VNb8pY




More information about the All-commits mailing list