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

             Bug #: 12018
           Summary: llc crashes with "Instruction does not dominate all
                    uses" on IL with debug metadata
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


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

Running clang on the attached testcase

clang -cc1 -triple i386-apple-macosx10.7.0 -emit-llvm  -g -O2   -o test.ll -x
c++-cpp-output nsSMILAnimationFunction.ii -w

creates IL that crashes llc:

Instruction does not dominate all uses!
  %uglygep45 = bitcast i8* %uglygep4 to %struct.nsSMILValue*
  %scevgep6 = getelementptr %struct.nsSMILValue* %uglygep45, i32 4
Broken module found, compilation aborted!
Stack dump:
0.    Program arguments: /Users/espindola/llvm/build-dbg/bin/llc test.ll 
1.    Running pass 'Function Pass Manager' on module 'test.ll'.
2.    Running pass 'Module Verifier' on function '@_Z6foobarR8nsTArray'

(I will attach the IL too)

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