diff --git a/external/llvm-project b/external/llvm-project index 881ff4e4e..84fe34a0b 160000 --- a/external/llvm-project +++ b/external/llvm-project @@ -1 +1 @@ -Subproject commit 881ff4e4ebe8cc0cc045c7c167cffb01f94f27f8 +Subproject commit 84fe34a0b7fdd7bbf179981d1583693d5d5ec68b diff --git a/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp b/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp index 29abe3314..bcd212c39 100644 --- a/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp +++ b/lib/Dialect/Torch/Transforms/GlobalizeObjectGraph.cpp @@ -569,10 +569,10 @@ rewriteMonomorphizedFuncClone(FuncOp func, BlockAndValueMapping mapping, op->dropAllDefinedValueUses(); op->erase(); } - SmallVector argsToErase; + llvm::BitVector argsToErase(func.getNumArguments()); for (auto type : llvm::enumerate(func.getArgumentTypes())) { if (type.value().isa()) { - argsToErase.push_back(type.index()); + argsToErase.set(type.index()); } } func.eraseArguments(argsToErase); diff --git a/lib/Dialect/TorchConversion/Transforms/Passes.cpp b/lib/Dialect/TorchConversion/Transforms/Passes.cpp index dd1aa472e..ecd4d1920 100644 --- a/lib/Dialect/TorchConversion/Transforms/Passes.cpp +++ b/lib/Dialect/TorchConversion/Transforms/Passes.cpp @@ -61,7 +61,7 @@ void TorchConversion::createTorchBackendToLinalgOnTensorsBackendPipeline( pm.addNestedPass(createConvertTorchToLinalgPass()); pm.addNestedPass(createConvertTorchToStdPass()); pm.addNestedPass(createConvertTorchToSCFPass()); - pm.addNestedPass(createStdExpandOpsPass()); + pm.addNestedPass(memref::createExpandOpsPass()); if (options.optimize) { // Clean up any non-canonical code introduced above..