[PATCH] D57932: [GISel][NFC]: Add missing call to record CSE hits in the CSEMIRBuilder
Aditya Nandakumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 7 16:55:32 PST 2019
aditya_nandakumar created this revision.
aditya_nandakumar added reviewers: arsenm, aemerson, bogner, volkan, dsanders, paquette, qcolombet.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Missing call to record CSE hits. Can be used to figure out what opcodes are CSEd frequently and how many times.
NFC.
Repository:
rL LLVM
https://reviews.llvm.org/D57932
Files:
lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
Index: lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
===================================================================
--- lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
+++ lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
@@ -39,6 +39,7 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57932.185891.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190208/4cb04c8d/attachment.bin>
More information about the llvm-commits
mailing list