[all-commits] [llvm/llvm-project] 8e6d48: [ConstraintElimination] Simplify ssub(A, B) if B s>...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri May 13 05:20:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e6d481f3b7da224f8dd28a06fa91602e824db18
      https://github.com/llvm/llvm-project/commit/8e6d481f3b7da224f8dd28a06fa91602e824db18
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-05-13 (Fri, 13 May 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/ssub-with-overflow.ll

  Log Message:
  -----------
  [ConstraintElimination] Simplify ssub(A,B) if B s>=b && B s>=0.

A first patch to use the reasoning in ConstraintElimination to simplify
sub with overflow to a regular sub, if the operation is guaranteed to
not overflow.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D125264




More information about the All-commits mailing list