[LLVMbugs] [Bug 2329] Comparison of constant inttoptrs not folded

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat May 17 02:16:49 PDT 2008


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


Nick Lewycky <nicholas at mxc.ca> changed:

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




--- Comment #3 from Nick Lewycky <nicholas at mxc.ca>  2008-05-17 04:16:47 ---
It now optimizes down to:

define i32 @f() nounwind  {
entry:
        %tmp1 = load %struct.a** @a, align 4            ; <%struct.a*>
[#uses=1]
        %tmp2 = getelementptr %struct.a* %tmp1, i32 0, i32 0            ;
<i32*> [#uses=1]
        store i32 1, i32* %tmp2, align 4
        ret i32 0
}


-- 
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.



More information about the llvm-bugs mailing list