[llvm-commits] [llvm] r38504 - /llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp
Owen Anderson
resistor at mac.com
Tue Jul 10 11:43:15 PDT 2007
Author: resistor
Date: Tue Jul 10 13:43:15 2007
New Revision: 38504
URL: http://llvm.org/viewvc/llvm-project?rev=38504&view=rev
Log:
Handle vaarg instructions correctly.
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=38504&r1=38503&r2=38504&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryDependenceAnalysis.cpp Tue Jul 10 13:43:15 2007
@@ -67,6 +67,9 @@
pointerSize = C->getZExtValue();
else
pointerSize = ~0UL;
+ } else if (VAArgInst* V = dyn_cast<VAArgInst>(QI)) {
+ pointer = V->getOperand(0);
+ pointerSize = TD.getTypeSize(V->getType());
} else if (FreeInst* F = dyn_cast<FreeInst>(QI)) {
pointer = F->getPointerOperand();
@@ -130,6 +133,9 @@
dependee = L->getPointerOperand();
dependeeSize = TD.getTypeSize(L->getType());
queryIsVolatile = L->isVolatile();
+ } else if (VAArgInst* V = dyn_cast<VAArgInst>(QI)) {
+ dependee = V->getOperand(0);
+ dependeeSize = TD.getTypeSize(V->getType());
} else if (FreeInst* F = dyn_cast<FreeInst>(QI)) {
dependee = F->getPointerOperand();
@@ -176,6 +182,9 @@
pointerSize = C->getZExtValue();
else
pointerSize = ~0UL;
+ } else if (VAArgInst* V = dyn_cast<VAArgInst>(QI)) {
+ pointer = V->getOperand(0);
+ pointerSize = TD.getTypeSize(V->getType());
} else if (FreeInst* F = dyn_cast<FreeInst>(QI)) {
pointer = F->getPointerOperand();
More information about the llvm-commits
mailing list