[Mlir-commits] [mlir] [MLIR][NFC] Speed up is valid symbol check (PR #154924)
Mehdi Amini
llvmlistbot at llvm.org
Fri Aug 22 04:34:03 PDT 2025
================
@@ -427,6 +427,25 @@ bool mlir::affine::isValidSymbol(Value value) {
return false;
}
+/// A utility function to check if a value is defined at the top level of
+/// `region` or is an argument of `region` or dominates the region.
----------------
joker-eph wrote:
> the underlying code checks the is isolated from above constraint, areValuesDefinedAbove isn't equivalent
Seems like `areValuesDefinedAbove` should be updated instead: I don't think we should have the same utility with a different implementation multiple-times in the codebase.
That said: checking for traits may very well be more expensive than getting all the parent regions.
https://github.com/llvm/llvm-project/pull/154924
More information about the Mlir-commits
mailing list