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

            Bug ID: 16794
           Summary: mem2reg hits assert with short function
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 10985
  --> http://llvm.org/bugs/attachment.cgi?id=10985&action=edit
test case

With top of tree, if I run "opt -mem2reg bugpoint-reduced-simplified.ll" with
the attached, I get a crash:

Assertion failed: (isa<X>(Val) && "cast<Ty>() argument of incompatible type!"),
function cast, file /Users/mpharr/llvm-dev-src/include/llvm/Support/Casting.h,
line 239.
[...]
0.    Program arguments: opt -mem2reg bugpoint-reduced-simplified.ll 
1.    Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2.    Running pass 'Promote Memory to Register' on function '@f_f'
[1]    74604 illegal hardware instruction  opt -mem2reg
bugpoint-reduced-simplified.ll

According to git bisect, this was introduced in Bill W's r187618.

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