[LLVMbugs] [Bug 16794] New: mem2reg hits assert with short function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 5 10:37:05 PDT 2013


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: unassignedbugs at nondot.org
          Reporter: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130805/c086aee5/attachment.html>


More information about the llvm-bugs mailing list