1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

BlockFrequencyInfoImpl.h - use const references to avoid FrequencyData copies. NFCI.

This commit is contained in:
Simon Pilgrim 2020-10-02 13:56:13 +01:00
parent bb73c06802
commit 065a86f6d4

View File

@ -1449,8 +1449,8 @@ void BlockFrequencyInfoImpl<BT>::verifyMatch(
BlockNode Node = Entry.second;
if (OtherValidNodes.count(BB)) {
BlockNode OtherNode = OtherValidNodes[BB];
auto Freq = Freqs[Node.Index];
auto OtherFreq = Other.Freqs[OtherNode.Index];
const auto &Freq = Freqs[Node.Index];
const auto &OtherFreq = Other.Freqs[OtherNode.Index];
if (Freq.Integer != OtherFreq.Integer) {
Match = false;
dbgs() << "Freq mismatch: " << bfi_detail::getBlockName(BB) << " "