[PATCH] D77909: [mlir][Pass] Allow duplicate pass registration.
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 15:05:01 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG33f76e2381b4: [mlir][Pass] Allow duplicate pass registration. (authored by rriddle).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77909/new/
https://reviews.llvm.org/D77909
Files:
mlir/lib/Pass/PassRegistry.cpp
Index: mlir/lib/Pass/PassRegistry.cpp
===================================================================
--- mlir/lib/Pass/PassRegistry.cpp
+++ mlir/lib/Pass/PassRegistry.cpp
@@ -100,9 +100,7 @@
// TODO: We should use the 'arg' as the lookup key instead of the pass id.
const PassID *passID = function()->getPassID();
PassInfo passInfo(arg, description, passID, function);
- bool inserted = passRegistry->try_emplace(passID, passInfo).second;
- assert(inserted && "Pass registered multiple times");
- (void)inserted;
+ passRegistry->try_emplace(passID, passInfo);
}
/// Returns the pass info for the specified pass class or null if unknown.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77909.256678.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/75b6c1b4/attachment.bin>
More information about the llvm-commits
mailing list