[llvm-bugs] [Bug 51225] New: -O3 compile randomly ICE: Running pass 'CodeGen Prepare'
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 27 02:07:06 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51225
Bug ID: 51225
Summary: -O3 compile randomly ICE: Running pass 'CodeGen
Prepare'
Product: clang
Version: 12.0
Hardware: Other
OS: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: yansendao at huawei.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 25073
--> https://bugs.llvm.org/attachment.cgi?id=25073&action=edit
creduce testcase file
$ ~/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang++ -O3
test-creduce.cpp
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments:
/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12 -cc1
-triple aarch64-unknown-linux-gnu -emit-obj --mrelax-relocations -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name test-creduce.cpp
-mrelocation-model static -mframe-pointer=non-leaf -fmath-errno
-fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu generic
-target-feature +neon -target-abi aapcs -fallow-half-arguments-and-returns
-fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir
/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/lib/clang/12.0.0
-internal-isystem
/usr/lib64/gcc/aarch64-linux-gnu/7.5.0/../../../../include/c++/7.5.0
-internal-isystem
/usr/lib64/gcc/aarch64-linux-gnu/7.5.0/../../../../include/aarch64-linux-gnu/c++/7.5.0
-internal-isystem
/usr/lib64/gcc/aarch64-linux-gnu/7.5.0/../../../../include/aarch64-linux-gnu/c++/7.5.0
-internal-isystem
/usr/lib64/gcc/aarch64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/backward
-internal-isystem /usr/local/include -internal-isystem
/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/lib/clang/12.0.0/include
-internal-externc-isystem /usr/include/aarch64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O3
-fdeprecated-macro -fdebug-compilation-dir
/home/yansendao/history/issue/boole-issue2475 -ferror-limit 19 -fno-signed-char
-fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -fcolor-diagnostics
-vectorize-loops -vectorize-slp -faddrsig -o /tmp/test-creduce-2cb6b8.o -x c++
test-creduce.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'test-creduce.cpp'.
4. Running pass 'CodeGen Prepare' on function '@_Z1bbPA8_A4_A5_c'
#0 0x0000000002147364 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x2147364)
#1 0x0000000002145440 llvm::sys::RunSignalHandlers()
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x2145440)
#2 0x00000000021478b8 SignalHandler(int)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x21478b8)
#3 0x0000ffffbb92f688 (linux-vdso.so.1+0x688)
#4 0x00000000017f6f18 (anonymous
namespace)::TypePromotionHelper::getAction(llvm::Instruction*,
llvm::SmallPtrSet<llvm::Instruction*, 16u> const&, llvm::TargetLowering const&,
llvm::DenseMap<llvm::Instruction*, llvm::PointerIntPair<llvm::Type*, 2u,
(anonymous namespace)::ExtType, llvm::PointerLikeTypeTraits<llvm::Type*>,
llvm::PointerIntPairInfo<llvm::Type*, 2u,
llvm::PointerLikeTypeTraits<llvm::Type*> > >,
llvm::DenseMapInfo<llvm::Instruction*>,
llvm::detail::DenseMapPair<llvm::Instruction*,
llvm::PointerIntPair<llvm::Type*, 2u, (anonymous namespace)::ExtType,
llvm::PointerLikeTypeTraits<llvm::Type*>, llvm::PointerIntPairInfo<llvm::Type*,
2u, llvm::PointerLikeTypeTraits<llvm::Type*> > > > > const&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x17f6f18)
#5 0x00000000017f68fc (anonymous
namespace)::CodeGenPrepare::tryToPromoteExts((anonymous
namespace)::TypePromotionTransaction&,
llvm::SmallVectorImpl<llvm::Instruction*> const&,
llvm::SmallVectorImpl<llvm::Instruction*>&, unsigned int)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x17f68fc)
#6 0x00000000017eb6f0 (anonymous
namespace)::CodeGenPrepare::optimizeInst(llvm::Instruction*, bool&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x17eb6f0)
#7 0x00000000017e3270 (anonymous
namespace)::CodeGenPrepare::runOnFunction(llvm::Function&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x17e3270)
#8 0x0000000001b877cc llvm::FPPassManager::runOnFunction(llvm::Function&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x1b877cc)
#9 0x0000000001b8ce2c llvm::FPPassManager::runOnModule(llvm::Module&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x1b8ce2c)
#10 0x0000000001b87cbc llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x1b87cbc)
#11 0x00000000022f3238 clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::HeaderSearchOptions const&, clang::CodeGenOptions const&,
clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout
const&, llvm::Module*, clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x22f3238)
#12 0x0000000002c44648
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x2c44648)
#13 0x00000000035d35e4 clang::ParseAST(clang::Sema&, bool, bool)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x35d35e4)
#14 0x0000000002758508 clang::FrontendAction::Execute()
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x2758508)
#15 0x00000000026f4c90
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x26f4c90)
#16 0x00000000027e776c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x27e776c)
#17 0x00000000009d0d98 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x9d0d98)
#18 0x00000000009cf704 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x9cf704)
#19 0x00000000009cf23c main
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x9cf23c)
#20 0x0000ffffbb432720 __libc_start_main
/build/glibc-D9JkfM/glibc-2.27/csu/../csu/libc-start.c:344:0
#21 0x00000000009cc758 _start
(/home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin/clang-12+0x9cc758)
clang-12: error: unable to execute command: Segmentation fault (core dumped)
clang-12: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 12.0.0
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/yansendao/software/clang+llvm-12.0.0-aarch64-linux-gnu/bin
clang-12: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-12: note: diagnostic msg: /tmp/test-creduce-ab5ae7.cpp
clang-12: note: diagnostic msg: /tmp/test-creduce-ab5ae7.sh
clang-12: note: diagnostic msg:
--
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/20210727/c63b33f7/attachment-0001.html>
More information about the llvm-bugs
mailing list