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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs