- Remove reset function. Use copy assignment directly (instead of within reset).
- Fix potential nullptr dereference in getFlattenedAffineExprs.
- Make constraint set optional in checkMemrefAccessDependence.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Affine/Analysis/Utils.cpp | ||
---|---|---|
63–67 | I would prefer to just add an FAVC constructor. |
Comment Actions
Thanks, SGTM with a few nits below
mlir/include/mlir/Dialect/Affine/Analysis/AffineStructures.h | ||
---|---|---|
53 | I think I would slightly prefer just adding another overload that maps to optional like you were doing earlier, since I only see two versions being used. If keeping the template version, ArrayRef<ValArgTy> would give better error messages. | |
108 | Same here. | |
mlir/lib/Dialect/Affine/Analysis/AffineAnalysis.cpp | ||
659–660 | Why return dependenceConstraints when there is no dependence? Is the specific set of constraints ever relevant when there was no dependence? |
I think I would slightly prefer just adding another overload that maps to optional like you were doing earlier, since I only see two versions being used.
If keeping the template version, ArrayRef<ValArgTy> would give better error messages.