Displaying 3 results from an estimated 3 matches for "selectivepa".
Did you mean:
selectively
2005 Apr 03
1
[LLVMdev] Running Pool Allocated programs
...eing allocated in one pool?
Also, in your other response you said:
>> The AllNodes heuristic is the only one that is substantially tested. I
>> would recommend it, none of the others have any significant performance
>> benefit anyway.
Is that still right or you meant that only SelectivePA is the only substantially tested?
--Ricardo
P.S. BTW, SelectivePA does not appear as an option when you do
opt -load ~/llvmdbg/installed/lib/libpoolalloc.so --help
and I could not find any reference in the source code (Heuristic.{h,cpp})
May I assume that is a new heuristic or you are referri...
2005 Apr 03
0
[LLVMdev] Running Pool Allocated programs
...this:
...
> My question is: why is this malloc necessary?
> ltmp_2_5 = malloc(4u);
> Shouldn't be the result a program with this malloc replaced by poolalloc?
> Should I include a special flag to achieve this?
Ah, sorry, my memory was wrong. The default is to perform the
"SelectivePA" optimization. Since pool allocation detected that there is
no point in putting a single allocation into a pool, it left it a malloc.
If you really want it to be a in a pool, pass
-poolalloc-heuristic=AllNodes to opt.
Sorry for the confusion!
-Chris
> I am using this line:
> opt -...
2005 Apr 03
2
[LLVMdev] Running Pool Allocated programs
Thanks for the answer
I am trying to test the PA with a program very similar to the one used as an example in the paper
located here:
http://llvm.cs.uiuc.edu/pubs/2003-04-29-DataStructureAnalysisTR.html
The program is as follows:
==========================
struct list { struct list *Next; };
struct list *makeList (int Num) {
struct list *New = malloc ( sizeof ( struct list ) );