[llvm-commits] [llvm] r60644 - /llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
Chris Lattner
sabre at nondot.org
Sat Dec 6 16:39:19 PST 2008
Author: lattner
Date: Sat Dec 6 18:39:19 2008
New Revision: 60644
URL: http://llvm.org/viewvc/llvm-project?rev=60644&view=rev
Log:
rename some variables for consistency
Modified:
llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp?rev=60644&r1=60643&r2=60644&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Sat Dec 6 18:39:19 2008
@@ -118,14 +118,14 @@
Value *MemPtr = 0;
uint64_t MemSize = 0;
- if (StoreInst *S = dyn_cast<StoreInst>(QueryInst)) {
+ if (StoreInst *SI = dyn_cast<StoreInst>(QueryInst)) {
// If this is a volatile store, don't mess around with it. Just return the
// previous instruction as a clobber.
- if (S->isVolatile())
+ if (SI->isVolatile())
return MemDepResult::getClobber(--ScanIt);
- MemPtr = S->getPointerOperand();
- MemSize = TD->getTypeStoreSize(S->getOperand(0)->getType());
+ MemPtr = SI->getPointerOperand();
+ MemSize = TD->getTypeStoreSize(SI->getOperand(0)->getType());
} else if (LoadInst *LI = dyn_cast<LoadInst>(QueryInst)) {
// If this is a volatile load, don't mess around with it. Just return the
// previous instruction as a clobber.
@@ -134,8 +134,8 @@
MemPtr = LI->getPointerOperand();
MemSize = TD->getTypeStoreSize(LI->getType());
- } else if (FreeInst* F = dyn_cast<FreeInst>(QueryInst)) {
- MemPtr = F->getPointerOperand();
+ } else if (FreeInst *FI = dyn_cast<FreeInst>(QueryInst)) {
+ MemPtr = FI->getPointerOperand();
// FreeInsts erase the entire structure, not just a field.
MemSize = ~0UL;
} else if (isa<CallInst>(QueryInst) || isa<InvokeInst>(QueryInst)) {
More information about the llvm-commits
mailing list