<div class="gmail_quote">On 29 October 2010 15:47, John Thompson <span dir="ltr"><<a href="mailto:john.thompson.jtsoftware@gmail.com">john.thompson.jtsoftware@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>If stack space is of concern, I think it would be safer to go back to vector.  Using vector will mean more heap allocations, but the overall memory usage would probably be less.</div>
<div> </div>
<div>How do you measure the stack space (i.e. is there a simple way besides inspection in the debugger)?  I'd like to measure both.<br></div></blockquote><div><br></div><div>gcc -Wframe-larger-than=16384 will warn of functions using more than 16k of stack space, on gcc 4.4. <a href="http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html">http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html</a></div>

<div><br></div><div>Nick</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div></div>

<font color="#888888">
<div>-John<br></div></font><div><div></div><div class="h5">
<div class="gmail_quote">On Fri, Oct 29, 2010 at 2:22 PM, Dale Johannesen <span dir="ltr"><<a href="mailto:dalej@apple.com" target="_blank">dalej@apple.com</a>></span> wrote:<br>
<blockquote style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">
<div style="word-wrap:break-word">Interesting.  It's true very small sizes are most common for these vectors, but I wouldn't have expected the overhead to be that significant.  Perhaps try lowering all the fixed allocations to 4? 
<div>
<div><br>
<div>
<div>On Oct 29, 2010, at 2:10 PMPDT, Nick Lewycky wrote:</div><br>
<blockquote type="cite"><span style="text-transform:none;text-indent:0px;border-collapse:separate;font:medium Helvetica;white-space:normal;letter-spacing:normal;word-spacing:0px">On 29 October 2010 10:29, John Thompson<span> </span><span dir="ltr"><<a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a>></span><span> </span>wrote:<br>



<blockquote style="border-left:rgb(204,204,204) 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">Author: jtsoftware<br>Date: Fri Oct 29 12:29:13 2010<br>New Revision: 117667<br><br>URL:<span> </span><a href="http://llvm.org/viewvc/llvm-project?rev=117667&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=117667&view=rev</a><br>


Log:<br>Inline asm multiple alternative constraints development phase 2 - improved basic logic, added initial platform support.<br></blockquote>
<div><br></div>
<div>This change makes SelectionDAGBuilder::visitInlineAsm use up 30k of stack space, largely due to the switch from std::vector to SmallVector. Please fix!</div></span></blockquote></div><br></div></div></div></blockquote>


</div><br><br clear="all"><br></div></div>-- <br><div><div></div><div class="h5">John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br>
</div></div><br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br>