[MLIR] NFC. Split out code from hasNoInterveningEffect
authorUday Bondhugula <uday@polymagelabs.com>
Wed, 14 Dec 2022 18:24:31 +0000 (23:54 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Thu, 15 Dec 2022 07:53:36 +0000 (13:23 +0530)
commitb6ceadf3b663427f3cc233bbfdb5e35017cabd9e
tree64b6f9b759ba6f3beb0feef9e6b338ae9766e1e2
parentaa00493de2b3c3a1819497ad36b8262be12e40bb
[MLIR] NFC. Split out code from hasNoInterveningEffect

The `hasNoInterveningEffect` utility is too long with too deeply nested
logic. Split out a part into a helper. NFC.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D139795
mlir/lib/Dialect/Affine/Utils/Utils.cpp