diff --git a/llvm/lib/Target/X86/X86PfmCounters.td b/llvm/lib/Target/X86/X86PfmCounters.td --- a/llvm/lib/Target/X86/X86PfmCounters.td +++ b/llvm/lib/Target/X86/X86PfmCounters.td @@ -211,7 +211,7 @@ } def : PfmCountersBinding<"btver2", BtVer2PfmCounters>; -def ZnVer1PfmCounters : ProcPfmCounters { +def ZnPfmCounters : ProcPfmCounters { let CycleCounter = PfmCounter<"cycles_not_in_halt">; let UopsCounter = PfmCounter<"retired_uops">; let IssueCounters = [ @@ -222,4 +222,5 @@ PfmIssueCounter<"ZnDivider", "div_op_count"> ]; } -def : PfmCountersBinding<"znver1", ZnVer1PfmCounters>; +def : PfmCountersBinding<"znver1", ZnPfmCounters>; +def : PfmCountersBinding<"znver2", ZnPfmCounters>;