[LLVMbugs] [Bug 1193] missing optimization for bit-accurate types

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Mar 26 00:41:22 PDT 2007


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

rspencer at x10sys.com changed:

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



------- Additional Comments From rspencer at x10sys.com  2007-03-26 02:41 -------
This appears to have been fixed. Running "opt -instcombine" on the test program
yields this code:

define void @test_add_sub(i11 sext  %a, i11 sext  %b, i11* %r1, i11* %r2) {
entry:
        %tmp45 = add i11 %b, %a         ; <i11> [#uses=1]
        store i11 %tmp45, i11* %r1
        %tmp113 = sub i11 %a, %b                ; <i11> [#uses=1]
        store i11 %tmp113, i11* %r2
        ret void
}

I don't think it gets much better than that.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list