summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-05-12 20:05:20 +0000
committerPete Cooper <peter_cooper@apple.com>2015-05-12 20:05:20 +0000
commit47e80cd796611f67c58afe2428eb1d2076553b01 (patch)
treefe5d439c78dd9394a725f5e94b0f29b1da918578 /llvm/lib/Transforms
parentc7dc6d6ee7e3eb309cdacb4c0976acae2cea4600 (diff)
downloadbcm5719-llvm-47e80cd796611f67c58afe2428eb1d2076553b01.tar.gz
bcm5719-llvm-47e80cd796611f67c58afe2428eb1d2076553b01.zip
Constify method. NFC
llvm-svn: 237167
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LICM.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index 0b98f6c2c12..b692866f54a 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;
OpenPOWER on IntegriCloud