[llvm-commits] [llvm] r100515 - /llvm/trunk/lib/Analysis/IVUsers.cpp
Dan Gohman
gohman at apple.com
Mon Apr 5 18:31:12 PDT 2010
Author: djg
Date: Mon Apr 5 20:31:12 2010
New Revision: 100515
URL: http://llvm.org/viewvc/llvm-project?rev=100515&view=rev
Log:
Add a const qualifier.
Modified:
llvm/trunk/lib/Analysis/IVUsers.cpp
Modified: llvm/trunk/lib/Analysis/IVUsers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IVUsers.cpp?rev=100515&r1=100514&r2=100515&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IVUsers.cpp (original)
+++ llvm/trunk/lib/Analysis/IVUsers.cpp Mon Apr 5 20:31:12 2010
@@ -142,7 +142,7 @@
/// 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;
More information about the llvm-commits
mailing list