[ConstraintElim] Move check-and-replace logic to helper function (NFC).
authorFlorian Hahn <flo@fhahn.com>
Thu, 13 Oct 2022 17:58:37 +0000 (18:58 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 13 Oct 2022 17:58:37 +0000 (18:58 +0100)
commit71c49d189a0fcd6d3a19e1b3049deceb0d262adb
treeb21a0c05b8d25293cb96e22ef6d687d5d4a246b9
parent8407fdbd691e2275bfa87013b4abb68ac24b8d0b
[ConstraintElim] Move check-and-replace logic to helper function (NFC).

Move logic to check and replace conditions to a helper function. This
isolates the code, allows using early returns, reduces the
indentation and simplifies eliminateConstraints.
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp