Integrate LLVM to llvm/llvm-project@c4484e842274 (#24562)
Fix a use-after-free bug in GlobalTable::eraseGlobal() that only
triggered with the updated LLVM version.
With this integration, IREE is at a clean LLVM upstream commit again.
Signed-off-by: Stefan Schuermans <schuermans@roofline.ai>
diff --git a/compiler/src/iree/compiler/Dialect/Util/Analysis/GlobalTable.cpp b/compiler/src/iree/compiler/Dialect/Util/Analysis/GlobalTable.cpp
index 70387f6..ee98e0d 100644
--- a/compiler/src/iree/compiler/Dialect/Util/Analysis/GlobalTable.cpp
+++ b/compiler/src/iree/compiler/Dialect/Util/Analysis/GlobalTable.cpp
@@ -175,9 +175,9 @@
assert(global.loadOps.empty() && "must not be used");
assert(global.referencingOps.empty() && "must not be referenced");
global.eraseStores();
+ global.op.erase();
globalMap.erase(globalName);
llvm::erase(globalOrder, globalName);
- global.op.erase();
}
} // namespace mlir::iree_compiler::IREE::Util
diff --git a/third_party/llvm-project b/third_party/llvm-project
index 65143ee..c4484e8 160000
--- a/third_party/llvm-project
+++ b/third_party/llvm-project
@@ -1 +1 @@
-Subproject commit 65143eee0344cbbf4e0636beb4687aa074c09e05
+Subproject commit c4484e8422745ab8c1ada25a6bda5d69ef8da924