File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ getClosestExtractSliceOfOperand(OpOperand &operand) {
46
46
if (auto loop =
47
47
dyn_cast<LoopLikeOpInterface>(iterArg.getOwner ()->getParentOp ()))
48
48
return getClosestExtractSliceOfOperand (*loop.getTiedLoopInit (iterArg));
49
+ // If operand is not using loop init.
50
+ return failure ();
49
51
}
50
52
51
53
Operation *defineOp = operand.get ().getDefiningOp ();
Original file line number Diff line number Diff line change 12
12
#include " gc/Dialect/CPURuntime/IR/CPURuntimeDialect.h"
13
13
#include " gc/Dialect/CPURuntime/IR/CPURuntimeOps.h"
14
14
#include " gc/Transforms/Passes.h"
15
- #include " mlir/Conversion/LLVMCommon/Pattern.h"
16
15
#include " mlir/Dialect/Bufferization/Transforms/BufferViewFlowAnalysis.h"
17
16
#include " mlir/Dialect/Func/IR/FuncOps.h"
18
17
#include " mlir/IR/PatternMatch.h"
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ void populateCPUPipeline(mlir::OpPassManager &pm) {
184
184
populateBufferizationPasses (pm);
185
185
// REMOVE this pass after the TensorPasses are added. Currently we add this
186
186
// pass to make the pipeline work properly
187
- pm.addNestedPass <func::FuncOp>(createConvertLinalgToParallelLoopsPass ());
187
+ pm.addNestedPass <func::FuncOp>(createConvertLinalgToLoopsPass ());
188
188
populateMicroKernelPasses (pm);
189
189
populateCPURuntimePasses (pm);
190
190
// back-end, llvm dialect
You can’t perform that action at this time.
0 commit comments