<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [DAGCombiner] crash in BackwardsPropagateMask() when trying to debug"
href="https://bugs.llvm.org/show_bug.cgi?id=37693">37693</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[DAGCombiner] crash in BackwardsPropagateMask() when trying to debug
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>spatel+llvm@rotateright.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I was trying to view debug output for the test in <a class="bz_bug_link
bz_status_NEW "
title="NEW - Clang miscompiles with -O1. (X86_DAG->DAG_Instruction_Selection_on_function)"
href="show_bug.cgi?id=37060">bug 37060</a>, but that asserts:
@c = external local_unnamed_addr constant i32, align 4
@d = external local_unnamed_addr global i32*, align 8
@e = external local_unnamed_addr global i32, align 4
define void @tf_0_foo() {
entry:
%0 = load i32, i32* @c, align 4
%rem = srem i32 -1, %0
%1 = load i32*, i32** @d, align 8
%2 = load i32, i32* %1, align 4
%xor = xor i32 %2, %rem
%conv3 = and i32 %xor, 255
store i32 %conv3, i32* @e, align 4
ret void
}
$ llc -o - 37060func.ll -debug
...
Propagate AND back to: t9: i32,ch = load<(load 4 from %ir.Assertion failed: (F
&& "No function incorporated"), function getLocalSlot, file
/llvm/lib/IR/AsmWriter.cpp, line 844.
Stack dump:
0. Program arguments: ./llc -o - 37060func.ll -debug
1. Running pass 'Function Pass Manager' on module '37060func.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@tf_0_foo'
0 llc 0x0000000103e6fa28
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 llc 0x0000000103e6e9d5 llvm::sys::RunSignalHandlers() +
85
2 llc 0x0000000103e70032 SignalHandler(int) + 258
3 libsystem_platform.dylib 0x00007fff66ceef5a _sigtramp + 26
4 libsystem_platform.dylib 0x00007fc76dc1ee10 _sigtramp + 116588240
5 libsystem_c.dylib 0x00007fff66a8c1ae abort + 127
6 libsystem_c.dylib 0x00007fff66a541ac basename_r + 0
7 llc 0x000000010371f293
llvm::ModuleSlotTracker::getLocalSlot(llvm::Value const*) + 51
8 llc 0x00000001035540d7
llvm::MachineMemOperand::print(llvm::raw_ostream&, llvm::ModuleSlotTracker&,
llvm::SmallVectorImpl<llvm::StringRef>&, llvm::LLVMContext const&,
llvm::MachineFrameInfo const*, llvm::TargetInstrInfo const*) const + 3991
9 llc 0x0000000103d7742d
printMemOperand(llvm::raw_ostream&, llvm::MachineMemOperand const&,
llvm::SelectionDAG const*) + 301
10 llc 0x0000000103d7656e
llvm::SDNode::print_details(llvm::raw_ostream&, llvm::SelectionDAG const*)
const + 4414
11 llc 0x0000000103d7785e
llvm::SDNode::printr(llvm::raw_ostream&, llvm::SelectionDAG const*) const + 350
12 llc 0x0000000103d75150
llvm::SDNode::print(llvm::raw_ostream&, llvm::SelectionDAG const*) const + 32
13 llc 0x0000000103d75100
llvm::SDNode::dump(llvm::SelectionDAG const*) const + 32
14 llc 0x0000000103bab9f8 (anonymous
namespace)::DAGCombiner::visitAND(llvm::SDNode*) + 13208</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>