Loop at depth 1 containing: %8<header><exiting>,%10,%14<latch>
Loop at depth 1 containing: %1<header><exiting>,%3,%5<latch>
"Loop at depth 1 containing: %17<header><exiting>,%19,%23<latch>
Loop at depth 1 containing: %8<header><exiting>,%10,%14<latch
Loop at depth 1 containing: %1<header><exiting>,%3,%5<latch>
"_______________________________________________ LLVM Developers mailing list LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
for (Module::iterator FI = M.begin(), E = M.end(); FI != E; ) {
F = FI++;
if (!F->hasName() && !F->isDeclaration()){}
else{
LoopInfo *LI = &getAnalysis<LoopInfo>(*F);
WCETInfo *WI = &getAnalysis<WCETInfo>(); //WI is the ImmutablePass which contains the dense map
for(LoopInfo::iterator i=LI->begin(); i!=LI->end(); ++i) {
Loop *L = *i;
int lb=0;
lb=WI->outls(L); // the method: return ls.find(L)->second;
}
}
}
"Hi,
I tried to solve the problem by myself. And when I even got the densemap with 6 items, I still got 0 in another ModulePass by using the loopinfo derived in the new ModulePass. So if this means that when I use a loop in LoopInfo in a Function/ModulePass, I can't get the same loop object in another ModulePass. In other words, the loop objects in two ModulePasses are always different?
De: "John Criswell" <jtcr...@gmail.com>
À: "Hanbing Li" <hanbi...@inria.fr>, llv...@cs.uiuc.edu
Envoyé: Vendredi 29 Août 2014 15:24:52
Objet: Re: [LLVMdev] The problem of densemap and loop