[LLVMbugs] [Bug 8616] New: gep+load/store is optimized differently that insertvalue+store and load+extractvalue.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 15 10:26:24 PST 2010


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

           Summary: gep+load/store is optimized differently that
                    insertvalue+store and load+extractvalue.
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tom.prince at ualberta.net
                CC: llvmbugs at cs.uiuc.edu


I have attached to ll files, that differ simply in the use of GEP vs
insert/extractvalue.

For gep.ll, opt -O3 optimizes most of the code away, and running opt -O3 gets
rid of a single extra store.

For ev.ll, opt -O3 optimizes much less, but then running opt -O3 on the output
again gets rid of all the alloca.

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