[ConstraintElimination] Support constraints with only const ops.
authorFlorian Hahn <flo@fhahn.com>
Tue, 14 Jun 2022 09:37:12 +0000 (10:37 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 14 Jun 2022 09:37:12 +0000 (10:37 +0100)
commit782e91224601e461c019e0a4573bbccc6094fbcd
tree0fa85a4dca7d93d6b0dc7ff9ae54d0ea7e09dd44
parentc4a35c78aab23ede52671fb3dab9124fe466151b
[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.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
llvm/test/Transforms/ConstraintElimination/constants.ll