[all-commits] [llvm/llvm-project] 1774c1: [ConstraintElimination] Handle `ICMP_EQ` predicates

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Sun Jun 11 06:24:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1774c14816f9d4881660b539fd190615e1bdeefd
      https://github.com/llvm/llvm-project/commit/1774c14816f9d4881660b539fd190615e1bdeefd
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2023-06-11 (Sun, 11 Jun 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/ConstraintSystem.h
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/test/Transforms/ConstraintElimination/constants-unsigned-predicates.ll
    M llvm/test/Transforms/ConstraintElimination/eq.ll
    M llvm/test/Transforms/ConstraintElimination/reproducer-remarks-debug.ll

  Log Message:
  -----------
  [ConstraintElimination] Handle `ICMP_EQ` predicates

Simplification of equality predicates is now supported by
transferring equalities into inequalities. This is achieved
by separately checking that both `isConditionImplied(A >= B)`
and `isConditionImplied(A <= B)` hold.

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




More information about the All-commits mailing list