mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-09 05:57:23 +00:00
Constify method. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81b3ceba60
commit
94f1e3c66e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user