diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index ab9dd3e7f96..ce1b6f1e21e 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1635,9 +1635,9 @@ void AssemblyWriter::printFunction(const Function *F) { if (F->hasGC()) Out << " gc \"" << F->getGC() << '"'; if (F->isDeclaration()) { - Out << "\n"; + Out << " ; [#uses=" << F->getNumUses() << "]\n"; // Output # uses } else { - Out << " {"; + Out << " { ; [#uses=" << F->getNumUses() << ']'; // Output # uses // Output all of its basic blocks... for the function for (Function::const_iterator I = F->begin(), E = F->end(); I != E; ++I) diff --git a/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll b/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll index c8f97e39bef..74393e87301 100644 --- a/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll +++ b/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll @@ -1,8 +1,7 @@ ; The induction variable canonicalization pass shouldn't leave dead ; instructions laying around! ; -; RUN: opt < %s -indvars -S | \ -; RUN: not grep {#uses=0} +; RUN: opt < %s -indvars -S | grep {#uses=0} | count 1 define i32 @mul(i32 %x, i32 %y) { entry: