[llvm-commits] [llvm] r105012 - /llvm/trunk/lib/Analysis/AliasDebugger.cpp
Dan Gohman
gohman at apple.com
Fri May 28 15:31:51 PDT 2010
Author: djg
Date: Fri May 28 17:31:51 2010
New Revision: 105012
URL: http://llvm.org/viewvc/llvm-project?rev=105012&view=rev
Log:
Fix AliasDebugger to be aware of operand values too.
Modified:
llvm/trunk/lib/Analysis/AliasDebugger.cpp
Modified: llvm/trunk/lib/Analysis/AliasDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasDebugger.cpp?rev=105012&r1=105011&r2=105012&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasDebugger.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasDebugger.cpp Fri May 28 17:31:51 2010
@@ -45,8 +45,12 @@
InitializeAliasAnalysis(this); // set up super class
for(Module::global_iterator I = M.global_begin(),
- E = M.global_end(); I != E; ++I)
+ E = M.global_end(); I != E; ++I) {
Vals.insert(&*I);
+ for (User::const_op_iterator OI = I->op_begin(),
+ OE = I->op_end(); OI != OE; ++OI)
+ Vals.insert(*OI);
+ }
for(Module::iterator I = M.begin(),
E = M.end(); I != E; ++I){
@@ -58,8 +62,12 @@
for (Function::const_iterator FI = I->begin(), FE = I->end();
FI != FE; ++FI)
for (BasicBlock::const_iterator BI = FI->begin(), BE = FI->end();
- BI != BE; ++BI)
+ BI != BE; ++BI) {
Vals.insert(&*BI);
+ for (User::const_op_iterator OI = BI->op_begin(),
+ OE = BI->op_end(); OI != OE; ++OI)
+ Vals.insert(*OI);
+ }
}
}
More information about the llvm-commits
mailing list