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

             Bug #: 14572
           Summary: SROA asserts with "Only alloca-wide stores can be
                    split and recomposed"
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Created attachment 9674
  --> http://llvm.org/bugs/attachment.cgi?id=9674
This LLVM assembly file can be used to reproduce the bug.

On LLVM trunk(r169863) the SROA pass asserts with:
SROA.cpp:2611:
bool<unnamed>::AllocaPartitionRewriter::visitStoreInst(llvm::StoreInst&):
Assertion `V->getType()->getIntegerBitWidth() ==
TD.getTypeSizeInBits(OldAI.getAllocatedType()) && "Only alloca-wide stores can
be split and recomposed"' failed.

To reproduce this bug run:
  opt -sroa test.ll
The test.ll file is attached to this bug report.

Running opt --version gives:
LLVM (http://llvm.org/):
  LLVM version 3.3svn
  DEBUG build with assertions.
  Built Dec 11 2012 (13:53:02).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: corei7-avx

The bug doesn't seem to trigger when going through llc.

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