<br><br><div class="gmail_quote">On 6 November 2012 14:53, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">

Hi Anitha,<div class="im"><br>
<br>
On 05/11/12 10:29, Anitha Boyapati wrote:<br>
</div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="im">
<br>
<br>
On 5 November 2012 14:32, Duncan Sands <<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a><br></div><div class="im">
<mailto:<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>>> wrote:<br>
<br>
    Hi Anitha,<br>
<br>
<br></div>
        <a href="http://llvm.org/bugs/show_bug.__cgi?id=14185" target="_blank">http://llvm.org/bugs/show_bug.<u></u>__cgi?id=14185</a><div class="im"><br>
        <<a href="http://llvm.org/bugs/show_bug.cgi?id=14185" target="_blank">http://llvm.org/bugs/show_<u></u>bug.cgi?id=14185</a>><br>
        I am stuck on analysis. Does any one have alternate suggestions on debugging<br>
        llvm? (Please refer to comments for the work done so far)<br>
<br>
<br>
    try to reduce a small standalone testcase which is an LLVM IR (.ll) file<br>
<br>
Yes. Unfortunately, that is the challenge at the moment.<br>
</div></blockquote><p>
<br>
did you reduce everything down to one problematic source file?  If so, you can<br>
then start moving stuff out of that file to an auxiliary file until you only<br>
have left a minimal core that shows the problem.  But maybe you did that<br>
already? </p></blockquote><div> </div><div>I could corner down the segfault to a single function in source file. But the problem is - if that function is responsible for segfault or if it is the optimization somewhere else that is driving the segfault. In the worst case it could be so. I am yet to dive deeper there.</div>

<div> </div><div>Meanwhile, I have some question w.r.t "-fplugin-arg-dragonegg-emit-ir". Lets say I use the following command:</div><div> </div><div>[1]. g++  -O2 -march=bdver2 fplugin=dragonegg.so -mno-fma -mfma4 -fplugin-arg-dragonegg-emit-ir -S -ffast-math <test.c> -o <test.ll></div>

<div> </div><div>Does the above command produce an IR that is already optimized because of "-O2 -ffast-math -mno-fma -mfma4" ?</div><div> </div><div>[2]. If I feed the above generated <test.ll> to clang as follows:</div>

<div> </div><div>clang  -O3 -march=bdver2 -mno-fma  -mfma4 -ffp-contract=fast <test.ll></div><div> </div><div>Does clang proceed to optimize the test.ll w.r.t "-O3 -ffp-contract=fast -mno-fma -mfma4" ? (I am not sure if -ffp-contract=fast has any effect there, but I could be wrong though)</div>

<div> </div><div>Also thanks for the immediate fix for __builtin_iceil(). I can see that the issue got resolved.</div><div> </div><div>-Anitha</div><div> </div><div><br><br>
</div></div>