[llvm] r237167 - Constify method. NFC

Pete Cooper peter_cooper at apple.com
Tue May 12 13:05:20 PDT 2015


Author: pete
Date: Tue May 12 15:05:20 2015
New Revision: 237167

URL: http://llvm.org/viewvc/llvm-project?rev=237167&view=rev
Log:
Constify method.  NFC

Modified:
    llvm/trunk/lib/Transforms/Scalar/LICM.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/LICM.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LICM.cpp?rev=237167&r1=237166&r2=237167&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LICM.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LICM.cpp Tue May 12 15:05:20 2015
@@ -490,7 +490,7 @@ bool canSinkOrHoistInst(Instruction &I,
 /// This is true when all incoming values are that instruction.
 /// This pattern occurs most often with LCSSA PHI nodes.
 ///
-static bool isTriviallyReplacablePHI(PHINode &PN, Instruction &I) {
+static bool isTriviallyReplacablePHI(const PHINode &PN, const Instruction &I) {
   for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
     if (PN.getIncomingValue(i) != &I)
       return false;





More information about the llvm-commits mailing list