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

           Summary: Missing simplification of calls
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


calling convention code output by the frontend is unnecessary in this case
since the call is internal and should be cleaned up to use less IR (I'm
assuming the unconstrained calling convention on i386 can efficiently handle a
pair of i32).

In the example, BlueRule should just directly return a struct.BlueReturn or
first class struct rather than allocating stackspace, storing, casting, and
loading to get an i64.  (with the matching proccess on the callee to extract
the pair).


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