[ConstraintElimination] Clear new indices directly in getConstraint(NFC)
authorFlorian Hahn <flo@fhahn.com>
Wed, 14 Sep 2022 14:31:25 +0000 (15:31 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 14 Sep 2022 14:31:25 +0000 (15:31 +0100)
commitefd3ec47d9648a1243ff36eeaf10c51a84d0fa3e
tree7e283ada84262bbb15bf633cac057a4f4e27c016
parent5cff32b9f0bc7179e7cccb4233968b4a04057e0a
[ConstraintElimination] Clear new indices directly in getConstraint(NFC)

Instead of checking if any of the new indices has a non-zero coefficient
before using the constraint, do this directly when constructing the
constraint.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp