File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- #include " mlir/Dialect/Affine/IR/AffineOps.h"
2
- #include " mlir/Dialect/Affine/Passes.h"
3
1
#include " mlir/Dialect/Affine/Analysis/AffineAnalysis.h"
4
2
#include " mlir/Dialect/Affine/Analysis/AffineStructures.h"
3
+ #include " mlir/Dialect/Affine/IR/AffineOps.h"
4
+ #include " mlir/Dialect/Affine/Passes.h"
5
5
#include " mlir/Dialect/Arith/IR/Arith.h"
6
6
#include " mlir/Dialect/MemRef/IR/MemRef.h"
7
7
#include " mlir/Dialect/SCF/IR/SCF.h"
@@ -2115,13 +2115,13 @@ LogicalResult splitParallelIf(affine::AffineParallelOp pop,
2115
2115
continue ;
2116
2116
2117
2117
if (auto bound =
2118
- cst.getConstantBound64 (mlir::presburger::BoundType::EQ, i)) {
2118
+ cst.getConstantBound64 (mlir::presburger::BoundType::EQ, i)) {
2119
2119
splitAt = *bound + 1 ;
2120
2120
if (ubsPre[dim] <= splitAt)
2121
2121
splitAt = *bound;
2122
2122
preIsThen = true ;
2123
2123
} else if (auto bound =
2124
- cst.getConstantBound64 (mlir::presburger::BoundType::LB, i)) {
2124
+ cst.getConstantBound64 (mlir::presburger::BoundType::LB, i)) {
2125
2125
splitAt = *bound;
2126
2126
preIsThen = false ;
2127
2127
} else if (auto bound =
@@ -2142,9 +2142,7 @@ LogicalResult splitParallelIf(affine::AffineParallelOp pop,
2142
2142
}
2143
2143
2144
2144
SmallVector<AffineIfOp> ifOps;
2145
- pop->walk ([&](AffineIfOp ifOp) {
2146
- ifOps.push_back (ifOp);
2147
- });
2145
+ pop->walk ([&](AffineIfOp ifOp) { ifOps.push_back (ifOp); });
2148
2146
if (llvm::any_of (ifOps, [&](AffineIfOp ifOp) { return ifOp.hasElse (); }))
2149
2147
return failure ();
2150
2148
You can’t perform that action at this time.
0 commit comments