We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 594bfad commit cdbba68Copy full SHA for cdbba68
mlir/lib/Target/LLVM/NVVM/Target.cpp
@@ -673,6 +673,7 @@ NVPTXSerializer::moduleToObject(llvm::Module &llvmModule) {
673
llvm::Timer moduleToObjectTimer(
674
"moduleToObjectTimer",
675
"Timer for perf llvm-ir -> isa and isa -> binary.");
676
+ auto clear = llvm::make_scope_exit([&]() { moduleToObjectTimer.clear(); });
677
// Return LLVM IR if the compilation target is `offload`.
678
#define DEBUG_TYPE "serialize-to-llvm"
679
LLVM_DEBUG({
0 commit comments