!25419 Fix garbled text problem in dumped ir

Merge pull request !25419 from hewei/opt_perf
This commit is contained in:
i-robot 2021-10-26 08:51:07 +00:00 committed by Gitee
commit 8952afbc4a
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class TraceSpecialize : public TraceInfo {
public:
explicit TraceSpecialize(int64_t counter) : TraceInfo(nullptr), counter_(counter) {}
std::string name() const override { return "specialize" + std::to_string(counter_); }
std::string symbol() const override { return counter_ + "_"; }
std::string symbol() const override { return std::to_string(counter_) + "_"; }
std::string full_name() const override { return "specialize" + std::to_string(counter_) + "_"; }
~TraceSpecialize() override = default;
TraceInfoPtr clone() override { return std::make_shared<TraceSpecialize>(*this); }