[llvm-bugs] [Bug 32545] New: Assertion `(!To[i].getNode() || N->getValueType(i) == To[i].getValueType()) && "Cannot combine value to value of different type!"' failed.
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 5 15:36:29 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=32545
Bug ID: 32545
Summary: Assertion `(!To[i].getNode() || N->getValueType(i) ==
To[i].getValueType()) && "Cannot combine value to
value of different type!"' failed.
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: efriedma at codeaurora.org
CC: llvm-bugs at lists.llvm.org, niravd at google.com
Testcase (input to llc):
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7--linux-gnueabi"
define void @f(i32 %dstStride, i8* %indvars.iv, <2 x i8>* %zz) {
entry:
br label %for.body
for.body:
%tmp = load <2 x i8>, <2 x i8>* %zz, align 1
%tmp1 = extractelement <2 x i8> %tmp, i32 0
%.lhs.rhs = zext i8 %tmp1 to i32
call void @g(i32 %.lhs.rhs)
br label %for.body
}
declare void @g(i32)
Crashes like this:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:919: llvm::SDValue (anonymous
namespace)::DAGCombiner::CombineTo(llvm::SDNode *, const llvm::SDValue *,
unsigned int, bool): Assertion `(!To[i].getNode() || N->getValueType(i) ==
To[i].getValueType()) && "Cannot combine value to value of different type!"'
failed.
This is a recent regression caused by r298920.
--
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/20170405/545448cc/attachment.html>
More information about the llvm-bugs
mailing list