1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Constify method. NFC

llvm-svn: 237167
This commit is contained in:
Pete Cooper 2015-05-12 20:05:20 +00:00
parent f7cb0841d2
commit c814950de5

View File

@ -490,7 +490,7 @@ bool canSinkOrHoistInst(Instruction &I, AliasAnalysis *AA, DominatorTree *DT,
/// This is true when all incoming values are that instruction. /// This is true when all incoming values are that instruction.
/// This pattern occurs most often with LCSSA PHI nodes. /// 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) for (unsigned i = 0, e = PN.getNumIncomingValues(); i != e; ++i)
if (PN.getIncomingValue(i) != &I) if (PN.getIncomingValue(i) != &I)
return false; return false;