<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - llvmpipe: Fragment Shader with "return" in main causes back output"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62357#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - llvmpipe: Fragment Shader with "return" in main causes back output"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62357">bug 62357</a>
from <span class="vcard"><a class="email" href="mailto:sroland@vmware.com" title="Roland Scheidegger <sroland@vmware.com>"> <span class="fn">Roland Scheidegger</span></a>
</span></b>
<pre>Hmm I just noticed this doesn't actually work. Instead of not executing the
code after the conditional, the result will now always be as if the condition
passed, so the original testcase now fails (and the IR clearly indicates llvm
dropped all the code for the if condition (that is the comparison instructions
are still there but that's just because the results of that are stored back to
the register file).
I can't quite see though why if this doesn't work when happening in main, how
could it possibly work in a subroutine. I think there's something wrong with
handling condition masks around function calls/rets. Can't quite see yet how
this is all supposed to work together...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>