Index: llvm/include/llvm/Transforms/Utils/PredicateInfo.h
===================================================================
--- llvm/include/llvm/Transforms/Utils/PredicateInfo.h
+++ llvm/include/llvm/Transforms/Utils/PredicateInfo.h
@@ -187,6 +187,10 @@
     return PredicateMap.lookup(V);
   }
 
+  // Items added to the PredicateMap correspond to llvm.ssa.copy calls added to
+  // the function.
+  bool modifiedFunction() const { return !PredicateMap.empty(); }
+
 protected:
   // Used by PredicateInfo annotater, dumpers, and wrapper pass.
   friend class PredicateInfoAnnotatedWriter;
Index: llvm/lib/Transforms/Utils/PredicateInfo.cpp
===================================================================
--- llvm/lib/Transforms/Utils/PredicateInfo.cpp
+++ llvm/lib/Transforms/Utils/PredicateInfo.cpp
@@ -834,7 +834,7 @@
   PredInfo->print(dbgs());
   if (VerifyPredicateInfo)
     PredInfo->verifyPredicateInfo();
-  return false;
+  return PredInfo->modifiedFunction();
 }
 
 PreservedAnalyses PredicateInfoPrinterPass::run(Function &F,