<div dir="ltr">Is there an inherent reason Value Propagation is so memory hungry? It might be an independently useful improvement to improve the memory usage of Value Propagation so that it isn't the high water mark.<div><br></div><div>-- Sean Silva</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 5:16 AM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
for various reasons, I am limiting clang during builds in pkgsrc to 2GB<br>
address space. Given that e.g. ARM boards typically have only 1 or 2GB,<br>
that's a very practical limit. There are a number of builds that fail<br>
because clang hits that limit and for the majority, they all fail in the<br>
Value Propagation pass. I'd like to have an option for more selectively<br>
dealing with this -- -O0 is a very blunt hammer.<br>
<br>
(a) Is it possible to restrict the memory use and the associated CPU<br>
time use at least for -O2? The problematic cases also tend to be very<br>
slow, 5min+ builds are seen on a E3 Xeon.<br>
<br>
(b) Add an internal flag and go with -mllvm -disable-value-propagation.<br>
This is a relatively small patch, but I dislike the dependency on the<br>
implementation details.<br>
<br>
(c) Add a proper flag for clang and associated PM option.<br>
<br>
Joerg<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div></div>