[all-commits] [llvm/llvm-project] e89451: [InstCombine] Remove redundant unsigned underflow ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Apr 25 05:22:58 PDT 2022


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

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp

  Log Message:
  -----------
  [InstCombine] Remove redundant unsigned underflow fold (NFCI)

This is now handled as a combination of two other folds:
(A+B) <= A & (A+B) != 0  -->  (A+B)-1 < A
(A+B)-1 < A  -->  -B < A




More information about the All-commits mailing list