From 47e80cd796611f67c58afe2428eb1d2076553b01 Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Tue, 12 May 2015 20:05:20 +0000 Subject: [PATCH] Constify method. NFC llvm-svn: 237167 --- llvm/lib/Transforms/Scalar/LICM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 0b98f6c2c12a..b692866f54a3 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -490,7 +490,7 @@ bool canSinkOrHoistInst(Instruction &I, AliasAnalysis *AA, DominatorTree *DT, /// 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;