http://llvm.org/bugs/show_bug.cgi?id=7437

Chris Lattner <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Chris Lattner <[email protected]> 2010-07-07 19:28:18 CDT 
---
Second half was a scalarrepl bug, fixed in r107846.  We now compile the example
to this:


define void @Test(%struct.anon addrspace(2)* nocapture %pPtr) nounwind ssp {
entry:
  %pPtr15.0 = getelementptr inbounds %struct.anon addrspace(2)* %pPtr, i64 0,
i32 0, i64 0 ; <float addrspace(2)*> [#uses=2]
  %tmp = load float addrspace(2)* %pPtr15.0, align 4 ; <float> [#uses=1]
  %sub = fadd float %tmp, -5.000000e+00           ; <float> [#uses=1]
  store float %sub, float addrspace(2)* %pPtr15.0, align 4
  ret void
}

Thanks!

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to