[llvm-bugs] [Bug 37693] New: [DAGCombiner] crash in BackwardsPropagateMask() when trying to debug

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 5 11:33:09 PDT 2018


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

            Bug ID: 37693
           Summary: [DAGCombiner] crash in BackwardsPropagateMask() when
                    trying to debug
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvm-bugs at lists.llvm.org

I was trying to view debug output for the test in bug 37060, 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

-- 
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/20180605/0c46d989/attachment.html>


More information about the llvm-bugs mailing list