mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 10:27:02 +00:00
Add a const qualifier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
885d94143d
commit
3d32386992
@ -142,7 +142,7 @@ static bool getSCEVStartAndStride(const SCEV *&SH, Loop *L, Loop *UseLoop,
|
||||
/// the loop, resulting in reg-reg copies (if we use the pre-inc value when we
|
||||
/// should use the post-inc value).
|
||||
static bool IVUseShouldUsePostIncValue(Instruction *User, Instruction *IV,
|
||||
Loop *L, DominatorTree *DT) {
|
||||
const Loop *L, DominatorTree *DT) {
|
||||
// If the user is in the loop, use the preinc value.
|
||||
if (L->contains(User)) return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user