[llvm-commits] [poolalloc] r126833 - /poolalloc/trunk/lib/DSA/AddressTakenAnalysis.cpp
Arushi Aggarwal
aggarwa4 at illinois.edu
Tue Mar 1 22:38:09 PST 2011
Author: aggarwa4
Date: Wed Mar 2 00:38:09 2011
New Revision: 126833
URL: http://llvm.org/viewvc/llvm-project?rev=126833&view=rev
Log:
Call Inst, may have no uses. But we still want
to consider the case where a funtion is passed as
argument.
Modified:
poolalloc/trunk/lib/DSA/AddressTakenAnalysis.cpp
Modified: poolalloc/trunk/lib/DSA/AddressTakenAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/AddressTakenAnalysis.cpp?rev=126833&r1=126832&r2=126833&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/AddressTakenAnalysis.cpp (original)
+++ poolalloc/trunk/lib/DSA/AddressTakenAnalysis.cpp Wed Mar 2 00:38:09 2011
@@ -41,8 +41,6 @@
User *U = *I;
if(isa<StoreInst>(U))
return true;
- if(U->use_empty())
- continue;
if (!isa<CallInst>(U) && !isa<InvokeInst>(U)) {
if(isa<GlobalAlias>(U)) {
if(isAddressTaken(U))
@@ -51,7 +49,7 @@
if (Constant *C = dyn_cast<Constant>(U)) {
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) {
if (CE->getOpcode() == Instruction::BitCast) {
- return isAddressTaken(CE);
+ return isAddressTaken(CE);
}
}
}
More information about the llvm-commits
mailing list