[all-commits] [llvm/llvm-project] 00ab91: [ConstraintElimination] Remove ConstraintListTy (N...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Feb 18 06:41:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 00ab91b70d21f72af59e4e198c6dc819452405af
      https://github.com/llvm/llvm-project/commit/00ab91b70d21f72af59e4e198c6dc819452405af
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp

  Log Message:
  -----------
  [ConstraintElimination] Remove ConstraintListTy (NFCI).

This patch simplifies constraint handling by removing the
ConstraintListTy wrapper struct and moving the Preconditions directly
into ConstraintTy. This reduces the amount of memory needed for managing
constraints.

The only use case for ConstraintListTy was adding 2 constraints to model
ICMP_EQ conditions. But this can be handled by adding an IsEq flag. When
adding an equality constraint, we need to add the constraint and the
inverted constraint.




More information about the All-commits mailing list