search for: returnblocks

Displaying 5 results from an estimated 5 matches for "returnblocks".

2009 Mar 12
4
[LLVMdev] Shrink Wrapping - RFC and initial implementation
...t reduces nesting and please those of us who are a bit picky. 6. + // Save entry block, return blocks. + if (MBB->pred_size() == 0) + entryBlock = MBB; Entry block is the Fn.front(). 7. + if (!MBB->empty() && MBB->back().getDesc().isReturn()) + returnBlocks.push_back(MBB); PEI::insertPrologEpilogCode also traverse MBBs and get at return blocks. So these probably ought to be shared, i.e. returnBlocks should be an ivar and determined early in PEI. 8. + for (MachineBasicBlock::iterator I = MBB->begin(); I != MBB->end (); ++I) { + for...
2009 Mar 05
0
[LLVMdev] Shrink Wrapping - RFC and initial implementation
Here is an updated patch for shrink wrapping with: - spills/restores done with stack slot stores/loads - stack adjustment removed - refactoring (but still in need of more) - spill/restore insertion code unified with spill/restore placement code Documentation available here<http://wiki.github.com/jdmdj/llvm-work/shrink-wrapping-work> illustrates shrink wrapping with loops and discusses a
2009 Mar 03
2
[LLVMdev] Shrink Wrapping - RFC and initial implementation
On Mon, Mar 2, 2009 at 10:35 AM, Evan Cheng <echeng at apple.com> wrote: > > On Mar 1, 2009, at 2:57 PM, John Mosby wrote: > > Obviously, all of this applies only when spills are done with push/pop, > which is the case on x86. I used this issue to start looking at generalizing > how spills and restores are handled, before looking too closely at other > targets, and
2009 Mar 13
0
[LLVMdev] Shrink Wrapping - RFC and initial implementation
...+ // Save entry block, return blocks. > > > + if (MBB->pred_size() == 0) > > > + entryBlock = MBB; > > Entry block is the Fn.front(). > > 7. > + if (!MBB->empty() && MBB->back().getDesc().isReturn()) > > > + returnBlocks.push_back(MBB); > > PEI::insertPrologEpilogCode also traverse MBBs and get at return blocks. So > these probably ought to be shared, i.e. returnBlocks should be an ivar and > determined early in PEI. > Absolutely (I knew Fn.front() was what I wanted but didn't go back and fix th...
2009 Mar 18
1
[LLVMdev] Shrink Wrapping - RFC and initial implementation
...cks. >> >> >> +      if (MBB->pred_size() == 0) >> >> >> +        entryBlock = MBB; >> Entry block is the Fn.front(). >> 7. >> +        if (!MBB->empty() && MBB->back().getDesc().isReturn()) >> >> >> +          returnBlocks.push_back(MBB); >> PEI::insertPrologEpilogCode also traverse MBBs and get at return blocks. >> So these probably ought to be shared, i.e. returnBlocks should be an ivar >> and determined early in PEI. > > Absolutely (I knew Fn.front() was what I wanted but didn't go back...