[llvm-bugs] [Bug 27786] New: InstCombine: assert in canonicalizeCmpWithConstant

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 17 04:43:54 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27786

            Bug ID: 27786
           Summary: InstCombine: assert in canonicalizeCmpWithConstant
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: opt
          Assignee: unassignedbugs at nondot.org
          Reporter: silviu.baranga at arm.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16377
  --> https://llvm.org/bugs/attachment.cgi?id=16377&action=edit
Reproduce with: opt -instcombine reproducer.ll -o - -S

Instcombine asserts for the attached reproducer on ToT. This seems to be a
result of the recent changes to canonicalizeCmpWithConstant.

The assert is:

opt: /work/llvm/llvm/include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To =
llvm::UndefValue; From = llvm::Constant]: Assertion `Val && "isa<> used on a
null pointer"' failed.

-- 
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/20160517/45afd596/attachment-0001.html>


More information about the llvm-bugs mailing list