[LLVMbugs] [Bug 14226] New: Consider synthesizing ptrint + arithmetic + inttoptr to GEP

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 31 05:53:49 PDT 2012


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

             Bug #: 14226
           Summary: Consider synthesizing ptrint + arithmetic + inttoptr
                    to GEP
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ck at remobjects.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This is a feature request to start a discussion on consideration of turning
constructs like 
%4 = ptrtoint i8* %3 to i64
%5 = add i64 %4, 5
%6 = inttoptr i64 %5 to i8*

into a single gep
%4 = gep %3, 5

(Whenever possible) as an early optimization; as GEPs. Since GEP is optimized a
lot by other optimization psses.

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