llvm.org GIT mirror llvm / 8cf2663
Print the number of uses of a function in the .ll since it can be informative and there seems to be no reason not to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112812 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 9 years ago
2 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
16341634 if (F->hasGC())
16351635 Out << " gc \"" << F->getGC() << '"';
16361636 if (F->isDeclaration()) {
1637 Out << "\n";
1637 Out << " ; [#uses=" << F->getNumUses() << "]\n"; // Output # uses
16381638 } else {
1639 Out << " {";
1639 Out << " { ; [#uses=" << F->getNumUses() << ']'; // Output # uses
16401640
16411641 // Output all of its basic blocks... for the function
16421642 for (Function::const_iterator I = F->begin(), E = F->end(); I != E; ++I)
0 ; The induction variable canonicalization pass shouldn't leave dead
11 ; instructions laying around!
22 ;
3 ; RUN: opt < %s -indvars -S | \
4 ; RUN: not grep {#uses=0}
3 ; RUN: opt < %s -indvars -S | grep {#uses=0} | count 1
54
65 define i32 @mul(i32 %x, i32 %y) {
76 entry: