[all-commits] [llvm/llvm-project] ce190e: [ConstraintElimination] Negate IR condition directly.

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Feb 1 09:34:41 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce190e41445eb52e560ac70dd1df74717a1e80d2
      https://github.com/llvm/llvm-project/commit/ce190e41445eb52e560ac70dd1df74717a1e80d2
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-02-01 (Mon, 01 Feb 2021)

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

  Log Message:
  -----------
  [ConstraintElimination] Negate IR condition directly.

Instead of using ConstraintSystem::negate when adding new constraints,
flip the condition in IR.

The main advantage is that EQ predicates can be represented by 2
constraints, which makes negating based on the constraint tricky. The IR
condition can easily negated.




More information about the All-commits mailing list