[Mlir-commits] [mlir] [mlir][transform] Improve error message of tracking listener. (PR #66987)
Ingo Müller
llvmlistbot at llvm.org
Thu Sep 21 06:08:07 PDT 2023
================
@@ -1396,14 +1396,13 @@ void transform::TrackingListener::notifyOperationReplaced(
};
// Helper function to check if the handle is alive.
- auto hasAliveUser = [&]() {
- for (Value v : opHandles) {
- for (Operation *user : v.getUsers())
- if (user != transformOp && !happensBefore(user, transformOp))
- return true;
- }
- return false;
- };
+ SmallVector<Operation *> aliveUsers;
----------------
ingomueller-net wrote:
Fair enough. Latest revision only reports the first use. I'd say that it is worth reporting that use rather than only the fact one exists.
https://github.com/llvm/llvm-project/pull/66987
More information about the Mlir-commits
mailing list