search for: heapify

Displaying 8 results from an estimated 8 matches for "heapify".

2013 Nov 13
2
[LLVMdev] dominator, post-dominator and memory leak
Hi all, I have been writing a pass to heapify some alloca's (it is pessimistization, not optimization). For example, in the following control flow graph, there is a call to malloc inserted in block BB12. In order to avoid memory leak, free's are needed. The free cannot be inserted in BB23 because BB23 is not dominated by BB12. There ar...
2013 Nov 13
3
[LLVMdev] dominator, post-dominator and memory leak
...exit blocks that are dominated by BB12 (calls to malloc). I guess we can also insert calls to free at these exit blocks too. > H. > > > On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng <bintzeng at gmail.com> wrote: > >> Hi all, >> >> I have been writing a pass to heapify some alloca's (it is >> pessimistization, not optimization). For example, in the following control >> flow graph, there is a call to malloc inserted in block BB12. In order to >> avoid memory leak, free's are needed. The free cannot be inserted in BB23 >> because BB2...
2013 Nov 13
0
[LLVMdev] dominator, post-dominator and memory leak
...placing the calls to free at the predecessors (dominated by BB12) of the dominance frontier of BB12 seems to work, however. Is there anything wrong with this? H. On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng <bintzeng at gmail.com> wrote: > Hi all, > > I have been writing a pass to heapify some alloca's (it is > pessimistization, not optimization). For example, in the following control > flow graph, there is a call to malloc inserted in block BB12. In order to > avoid memory leak, free's are needed. The free cannot be inserted in BB23 > because BB23 is not dominat...
2013 Nov 13
0
[LLVMdev] dominator, post-dominator and memory leak
...alls to malloc). I guess we can also insert calls to > free at these exit blocks too. > >> H. >> >> >> On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng <bintzeng at gmail.com> wrote: >> >>> Hi all, >>> >>> I have been writing a pass to heapify some alloca's (it is >>> pessimistization, not optimization). For example, in the following control >>> flow graph, there is a call to malloc inserted in block BB12. In order to >>> avoid memory leak, free's are needed. The free cannot be inserted in BB23 >>...
2013 Nov 13
2
[LLVMdev] dominator, post-dominator and memory leak
...ert calls to >> free at these exit blocks too. >> >>> H. >>> >>> >>> On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng <bintzeng at gmail.com> wrote: >>> >>>> Hi all, >>>> >>>> I have been writing a pass to heapify some alloca's (it is >>>> pessimistization, not optimization). For example, in the following control >>>> flow graph, there is a call to malloc inserted in block BB12. In order to >>>> avoid memory leak, free's are needed. The free cannot be inserted in B...
2013 Nov 13
0
[LLVMdev] dominator, post-dominator and memory leak
...o insert calls to free at these exit blocks too. > > > > > H. > > > > > > > On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng < bintzeng at gmail.com > > wrote: > > > > > > Hi all, > > > I have been writing a pass to heapify some alloca's (it is > pessimistization, not optimization). For example, in the following > control flow graph, there is a call to malloc inserted in block > BB12. In order to avoid memory leak, free's are needed. The free > cannot be inserted in BB23 because BB23 is not dominat...
2013 Nov 15
2
[LLVMdev] dominator, post-dominator and memory leak
...ert calls to >> free at these exit blocks too. >> >>> H. >>> >>> >>> On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng <bintzeng at gmail.com> wrote: >>> >>>> Hi all, >>>> >>>> I have been writing a pass to heapify some alloca's (it is >>>> pessimistization, not optimization). For example, in the following control >>>> flow graph, there is a call to malloc inserted in block BB12. In order to >>>> avoid memory leak, free's are needed. The free cannot be inserted in B...
2013 Nov 15
0
[LLVMdev] dominator, post-dominator and memory leak
...exit blocks too. >>> >>>> H. >>>> >>>> >>>> On Tue, Nov 12, 2013 at 11:30 PM, Bin Tzeng <bintzeng at gmail.com> wrote: >>>> >>>>> Hi all, >>>>> >>>>> I have been writing a pass to heapify some alloca's (it is >>>>> pessimistization, not optimization). For example, in the following control >>>>> flow graph, there is a call to malloc inserted in block BB12. In order to >>>>> avoid memory leak, free's are needed. The free cannot be i...