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

            Bug ID: 22786
           Summary: Missed optimization due to instcombine + sroa creating
                    inttoptr on 32bit platforms
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 13984
  --> http://llvm.org/bugs/attachment.cgi?id=13984&action=edit
Testcase

InstCombine turns memcpys of 8 bytes into a load/store which SROA might later
split up into smaller values. In the attached test case, this ends up
extracting a pointer to doing a trunc + inttoptr operation, which stops the
second conditional branch from being eliminated, although it's clear that the
branch to "panic" will never be taken.

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