[NFC][MLGO] Introduce logRewardIfNeeded method
authorEric Wang <flpha0830@gmail.com>
Mon, 19 Sep 2022 22:29:26 +0000 (17:29 -0500)
committerEric Wang <flpha0830@gmail.com>
Fri, 23 Sep 2022 00:22:32 +0000 (19:22 -0500)
commit83c53d346f0515c65c579ab0cfef8f5afdbd2beb
treefbc171d46d3c4295055b9d2b1751234697112e22
parente08865a12c16896439920f3366fdb676885502aa
[NFC][MLGO] Introduce logRewardIfNeeded method

This patch introduces a logRewardIfNeeded method to reuse regallocscoring.

Differential Revision: https://reviews.llvm.org/D134232
llvm/lib/CodeGen/MLRegallocEvictAdvisor.cpp
llvm/lib/CodeGen/RegAllocEvictionAdvisor.h
llvm/lib/CodeGen/RegAllocPriorityAdvisor.h