[Mlir-commits] [mlir] [MLIR] Prevent invalid IR from being passed outside of RemoveDeadValues (PR #121079)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Mon Dec 30 14:23:10 PST 2024
================
@@ -72,15 +72,55 @@ using namespace mlir::dataflow;
namespace {
+// Set of structures below to be filled with operations and arguments to erase.
+// This is done to separate analysis and tree modification phases,
+// otherwise analysis is operating on half-deleted tree which is incorrect.
+
+struct CleanupFunction {
+ FunctionOpInterface funcOp;
+ BitVector nonLiveArgs;
+ BitVector nonLiveRets;
+};
+
+struct CleanupOperands {
+ Operation *op;
+ BitVector nonLiveOperands;
+};
+
+struct CleanupResults {
+ Operation *op;
+ BitVector nonLiveResults;
+};
+
+struct CleanupBlockArgs {
+ Block *b;
+ BitVector nonLiveArgs;
+};
+
+struct CleanupSuccessorOperands {
+ BranchOpInterface branch;
+ unsigned index;
----------------
banach-space wrote:
`index` of what?
https://github.com/llvm/llvm-project/pull/121079
More information about the Mlir-commits
mailing list