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:
parent
bb73c06802
commit
065a86f6d4
@ -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) << " "
|
||||
|
Loading…
Reference in New Issue
Block a user