[LLVMbugs] [Bug 13969] New: new SROA misses a case that old SROA got

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 28 01:34:18 PDT 2012


             Bug #: 13969
           Summary: new SROA misses a case that old SROA got
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 9277
  --> http://llvm.org/bugs/attachment.cgi?id=9277
larger testcase

Testcase as a .ll file:

target datalayout =
target triple = "x86_64-unknown-linux-gnu"

%struct = type { double* }

define void @test() {
  %e = alloca double, align 8
  %run = alloca %struct, align 8
  %0 = getelementptr inbounds %struct* %run, i64 0, i32 0
  store double* %e, double** %0, align 8
  ret void

opt -sroa doesn't eliminate %e, opt -scalarrepl does. This is heavily reduced,
so I've attached a less-reduced testcase so that you can see how %e and %run
actually get used.

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