[all-commits] [llvm/llvm-project] 782e91: [ConstraintElimination] Support constraints with o...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Jun 14 02:38:05 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 782e91224601e461c019e0a4573bbccc6094fbcd
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-06-14 (Tue, 14 Jun 2022)

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

  Log Message:
  [ConstraintElimination] Support constraints with only const ops.

Remove the early exit if both constraints contain no variables. This
restriction is unnecessayr for correctness and removing it simplifies
handling of trivial constant conditions in follow-up changes.

More information about the All-commits mailing list