search for: processedpreds

Displaying 2 results from an estimated 2 matches for "processedpreds".

2009 Aug 08
0
[LLVMdev] Profiling in LLVM Patch Followup 1
.../ has a LARGE number of in-edges. Handle the common case of having only a > - // few in-edges with special code. Thank you for killing this premature optimization. :) > + // the sum of the edge frequencies from the incoming edges. the -> The > std::set<const BasicBlock*> ProcessedPreds; > - ProcessedPreds.insert(FirstPred); > - ProcessedPreds.insert(SecondPred); > - ProcessedPreds.insert(ThirdPred); > + double Count = 0; > for (; PI != PE; ++PI) > - if (ProcessedPreds.insert(*PI).second) > - Count += getEdgeWeight(*PI, BB); > + if (Proces...
2009 Aug 08
6
[LLVMdev] Profiling in LLVM Patch Followup 1
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Dunbar wrote: > Thanks, applied as r78247. Next? :) Oh my, first he is lagging and now it's all a hurry :-) Okay, here comes the next one. I'm taking a short vacation next week so I will try to prepare 1 or 2 of the next patches so that you can work on them as you have time. Greetings, Andi - --