Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash in Transforms/InstCombine/sub-of-negatible.ll #18

Open
zhengyang92 opened this issue Jan 18, 2024 · 0 comments
Open

crash in Transforms/InstCombine/sub-of-negatible.ll #18

zhengyang92 opened this issue Jan 18, 2024 · 0 comments

Comments

@zhengyang92
Copy link
Collaborator

/home/liuz/minotaur/build/opt-minotaur.sh < /home/liuz/llvm/llvm/test/Transforms/InstCombine/sub-of-negatible.ll -passes=instcombine -S

--
+ : 'RUN: at line 2'
+ /home/liuz/minotaur/build/opt-minotaur.sh -passes=instcombine -S
+ /home/liuz/llvm/build/bin/FileCheck /home/liuz/llvm/llvm/test/Transforms/InstCombine/sub-of-negatible.ll
error when analysizing cost
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /home/liuz/llvm/build/bin/opt -load-pass-plugin=/home/liuz/minotaur/build/online.so -S -passes=minotaur-online -minotaur-enable-caching=false -minotaur-ignore-machine-cost=false -minotaur-debug-enumerator=true -minotaur-debug-codegen=true -minotaur-report-dir=/home/liuz/minotaur/build/logs
 #0 0x00007fc126f378ff llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/liuz/llvm/llvm/lib/Support/Unix/Signals.inc:602:22
 #1 0x00007fc126f352df llvm::sys::RunSignalHandlers() /home/liuz/llvm/llvm/lib/Support/Signals.cpp:104:20
 #2 0x00007fc126f35466 SignalHandler(int) /home/liuz/llvm/llvm/lib/Support/Unix/Signals.inc:413:1
 #3 0x00007fc126930520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #4 0x00007fc1271ffb80 llvm::SmallVectorTemplateCommon<llvm::LayoutAlignElem, void>::begin() const /home/liuz/llvm/llvm/include/llvm/ADT/SmallVector.h:271:63
 #5 0x00007fc1271ffb80 llvm::SmallVectorTemplateCommon<llvm::LayoutAlignElem, void>::end() const /home/liuz/llvm/llvm/include/llvm/ADT/SmallVector.h:273:44
 #6 0x00007fc1271ffb80 decltype(fp.end()) std::end<llvm::SmallVectorImpl<llvm::LayoutAlignElem>>(llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&) /usr/include/c++/11/bits/range_access.h:82:24
 #7 0x00007fc1271ffb80 decltype(end(forward<llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&>(fp))) llvm::adl_detail::end_impl<llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&>(llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&) /home/liuz/llvm/llvm/include/llvm/ADT/ADL.h:37:13
 #8 0x00007fc1271ffb80 decltype(end_impl(forward<llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&>(fp))) llvm::adl_end<llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&>(llvm::SmallVectorImpl<llvm::LayoutAlignElem> const&) /home/liuz/llvm/llvm/include/llvm/ADT/ADL.h:72:30
 #9 0x00007fc1271ffb80 partition_point<const llvm::SmallVectorImpl<llvm::LayoutAlignElem>&, findAlignmentLowerBound(const llvm::SmallVectorImpl<llvm::LayoutAlignElem>&, uint32_t)::<lambda(const llvm::LayoutAlignElem&)> > /home/liuz/llvm/llvm/include/llvm/ADT/STLExtras.h:1995:30
#10 0x00007fc1271ffb80 findAlignmentLowerBound /home/liuz/llvm/llvm/lib/IR/DataLayout.cpp:581:25
#11 0x00007fc1271ffb80 llvm::DataLayout::getAlignment(llvm::Type*, bool) const /home/liuz/llvm/llvm/lib/IR/DataLayout.cpp:824:37
#12 0x00007fc1251f8683 llvm::DataLayout::getTypeStoreSize(llvm::Type*) const /home/liuz/llvm/llvm/include/llvm/IR/DataLayout.h:469:42
#13 0x00007fc1251f8683 llvm::DataLayout::getTypeAllocSize(llvm::Type*) const /home/liuz/llvm/llvm/include/llvm/IR/DataLayout.h:502:19
#14 0x00007fc1251f8683 llvm_util::get_operand(llvm::Value*, std::function<IR::Value* (llvm::ConstantExpr*)>, std::function<IR::Value* (IR::AggregateValue*)>) /home/liuz/alive2-intrinsics/llvm_util/utils.cpp:317:41
#15 0x00007fc1251e45b7 get_operand /home/liuz/alive2-intrinsics/llvm_util/llvm2alive.cpp:184:34
#16 0x00007fc1251e45b7 (anonymous namespace)::llvm2alive_::visitCastInst(llvm::CastInst&) /home/liuz/alive2-intrinsics/llvm_util/llvm2alive.cpp:265:5
#17 0x00007fc1251ed468 visitTruncInst /home/liuz/llvm/llvm/include/llvm/IR/InstVisitor.h:176:53
#18 0x00007fc1251ed468 visitTrunc /home/liuz/llvm/llvm/include/llvm/IR/Instruction.def:184:1
#19 0x00007fc1251ed468 llvm::InstVisitor<(anonymous namespace)::llvm2alive_, std::unique_ptr<IR::Instr, std::default_delete<IR::Instr>>>::visit(llvm::Instruction&) /home/liuz/llvm/llvm/include/llvm/IR/Instruction.def:184:1
#20 0x00007fc1251efb9a std::__uniq_ptr_impl<IR::Instr, std::default_delete<IR::Instr>>::_M_ptr() const /usr/include/c++/11/bits/unique_ptr.h:173:58
#21 0x00007fc1251efb9a std::unique_ptr<IR::Instr, std::default_delete<IR::Instr>>::get() const /usr/include/c++/11/bits/unique_ptr.h:422:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant