diff options
author | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2019-02-08 19:41:13 +0000 |
---|---|---|
committer | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2019-02-08 19:41:13 +0000 |
commit | 01e818a97d6afb1983983021c2029aafc4124170 (patch) | |
tree | 399b5cd6197135df28350a3da55e18d985b6bee0 /llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp | |
parent | a1cec5b2644ff1221161552cbc471b59902dbf46 (diff) | |
download | bcm5719-llvm-01e818a97d6afb1983983021c2029aafc4124170.tar.gz bcm5719-llvm-01e818a97d6afb1983983021c2029aafc4124170.zip |
[GISel][NFC]: Add missing call to record CSE hits in the CSEMIRBuilder
https://reviews.llvm.org/D57932
Add some logging + tests to make sure CSEInfo prints debug output.
reviewed by: arsenm
llvm-svn: 353553
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp index ed2c95c22ce..461bc6038c2 100644 --- a/llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp +++ b/llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp @@ -39,6 +39,7 @@ CSEMIRBuilder::getDominatingInstrForID(FoldingSetNodeID &ID, MachineInstr *MI = CSEInfo->getMachineInstrIfExists(ID, CurMBB, NodeInsertPos); if (MI) { + CSEInfo->countOpcodeHit(MI->getOpcode()); auto CurrPos = getInsertPt(); if (!dominates(MI, CurrPos)) CurMBB->splice(CurrPos, CurMBB, MI); |