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

           Summary: poor optimization in presence of bitcast'ed pointer
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Created an attachment (id=1874)
 --> (http://llvm.org/bugs/attachment.cgi?id=1874)
failing testcase

The attached test case (foo.ll) should optimize down to a constant return. I
believe the presence of the bitcast is inhibiting further optimization though. 

A relatively simple fix (I believe) would be to reduce the stores through a
bitcasted pointer to separate stores into the proper type when obvious. 

Alternatively, this code arises from a lowered memset, which could be changed
to lower in a type specific way. The original .ll is also attached.


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