Fixing Load-Hit-Store
<p>How would the LHS be fixed in <a href="http://macton.smugmug.com/gallery/8936708_T6zQX/1/593426709_ZX4pZ#!i=593420229&amp;k=v7zei" rel="nofollow">this code</a>?</p>

<p>First, where does the LHS occur? I'm guessing it's in the <code>else if</code> by reading <code>s.r</code> a second time.</p>

<p>From what I've been reading about LHS I believe that adding a local would fix it:</p>

<pre><code>float radius = s.r;

if( d &lt;= -radius )
    ...
else if( d &gt;= radius)
    ...
</code></pre>

<p>But since &lt;= is a function what prevents &lt;= or any other function that takes the local as a reference from modifying it?</p>
