Bump LLVM to 84fe34a0b7fdd7bbf179981d1583693d5d5ec68b (#544)

* external/llvm-project 881ff4e4ebe8...84fe34a0b7fd (466):
  > [MLIR] Workaround for python detection problems.
pull/549/head snapshot-20220128.233
stephenneuendorffer 2022-01-27 17:21:09 -08:00 committed by GitHub
parent 7a5736facd
commit 52ed3313b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 881ff4e4ebe8cc0cc045c7c167cffb01f94f27f8
Subproject commit 84fe34a0b7fdd7bbf179981d1583693d5d5ec68b

View File

@ -569,10 +569,10 @@ rewriteMonomorphizedFuncClone(FuncOp func, BlockAndValueMapping mapping,
op->dropAllDefinedValueUses();
op->erase();
}
SmallVector<unsigned> argsToErase;
llvm::BitVector argsToErase(func.getNumArguments());
for (auto type : llvm::enumerate(func.getArgumentTypes())) {
if (type.value().isa<NnModuleType>()) {
argsToErase.push_back(type.index());
argsToErase.set(type.index());
}
}
func.eraseArguments(argsToErase);

View File

@ -61,7 +61,7 @@ void TorchConversion::createTorchBackendToLinalgOnTensorsBackendPipeline(
pm.addNestedPass<FuncOp>(createConvertTorchToLinalgPass());
pm.addNestedPass<FuncOp>(createConvertTorchToStdPass());
pm.addNestedPass<FuncOp>(createConvertTorchToSCFPass());
pm.addNestedPass<FuncOp>(createStdExpandOpsPass());
pm.addNestedPass<FuncOp>(memref::createExpandOpsPass());
if (options.optimize) {
// Clean up any non-canonical code introduced above..