<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJy9Wltz4rgS_jXkRWXKNzB-yAPhks2pkKQCM1t1XlyyJYPOGNsrywmZX78tyYDlkMl4zs5OMWBLre6vW1JfpMQFebueF7TKB24g0A6XJc3RKxM7VJSC7dl3LFiRV6hI0yFCA3s-sKfN9-jmmZa8IHVCOcJC4GRHyWA0H7iTnRBlNfCmA3cJny2wq-NhUuzhJctejj8WjP4fTQS8piyjFfwGoee4fgBPivfwOysHbmiIHdvNR72uQew3ROp9KcWpJns4sMMnXmw53iPMt_We5kKiQcC2rriUXiQ4g9-Ygd7LJMP5duDewAdZB5QcHxM54LXg36oSJxSeq6Lm6uGoBIvhewMyqFRiOuXJbuyfn-7WNLsvXiln-XaYlCWyCvThmNkKf6PLxg73919XTdesIPSW5kPC-MechwWy7i6zho5fUgPGsTzJakI_53AiXM3h__K3KTkkwH7zG204v90s1pvoj-k6et5s7gbe3IbGaHl3v4gel8v1YhPd3G3W0C4NNI9uH75E68cvz7OFfLufPt8uFO25LVpv5rNo9viw3kwfNtFqOnt-XJ87lo_Pq-n75vu71d25VShNYS3vrYzl9cHa5jXFMdulyEqf7man7xdWsZhlTLxZLAdSWlk7RghsaetPynnBATjBglqwtWmrrc63NeaEEgu_YJbhhkdOX4EIZ5kkPQiO4TcvrDqvKyAtMWwwKmDzW3--cgZcKyFtWcF7gith_VVjOXLPqgqarZTRjAAuJhjO2HfKgbCkBOeCJZpxVgCZ_JIc9C4MJxb4jRILSwGwKrpn0Mv2ZcYSJqwU0IkdL-rtTg4qXigHaBV4sGRnEZriOhOaeV7QQ0JLYYm3kqqm3HphXABIi4hCakFoBvpYF3qqeruloJLkzxnR4yUy6Vtkv9IcGnIgqMBjar0ziolsZznMgVCuFGaJMLzNiwrUrmBEJgWkaZ0nshsUTLTHBToscOv90UUWWGb-MF_cfLk1Zhum8DjPKeDSijZc4J0LAUarBAG6xq6Or52lI53lwJvRIh14C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fZUPIZFnx7xa8Vy7jeVtCZgfurzp1Q9srzRHpEKJjI6LWeTj2NMOVbfbv4uqPymEl6B3nZJK-dB25QoY_-CCAt-I8m_Uqpdq30-hudFw9y>53396</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang 13.0.0 segfault when compiling LLVM's AArch64ISelLowering.cpp for arm-unknown-linux-gnueabihf
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vadimcn
</td>
</tr>
</table>
<pre>
Doesn't happen with optimizations off.
[Reproducer attached](https://github.com/llvm/llvm-project/files/7931247/Repro.zip)
```
Stack dump:
0. Program arguments: /usr/local/bin/clang++ -x c++ -c /workspace/source/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp -o lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.o -Ilib/Target/AArch64 -I/workspace/source/llvm/lib/Target/AArch64 -Iinclude -I/workspace/source/llvm/include -MD -MF lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.o.d -MT lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ISelLowering.cpp.o -DGTEST_HAS_RTTI=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -target arm-linux-gnueabihf -fPIC -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O2 -g -DNDEBUG -fvisibility=hidden -fno-exceptions -fno-rtti -std=c++14
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/workspace/source/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp'.
4. Running pass 'ARM Instruction Selection' on function '@_ZN4llvm21AArch64TargetLowering24addTypeForFixedLengthSVEENS_3MVTE'
#0 0x00000000025f7a63 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/local/bin/clang+++0x25f7a63)
#1 0x00000000025f5a5e llvm::sys::RunSignalHandlers() (/usr/local/bin/clang+++0x25f5a5e)
#2 0x00000000025f6f1d llvm::sys::CleanupOnSignal(unsigned long) (/usr/local/bin/clang+++0x25f6f1d)
#3 0x000000000257c200 (/usr/local/bin/clang+++0x257c200)
#4 0x00007fb2d39120e0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x110e0)
#5 0x0000000002580fb4 llvm::FoldingSetBase::RemoveNode(llvm::FoldingSetBase::Node*) (/usr/local/bin/clang+++0x2580fb4)
#6 0x0000000003259415 llvm::SelectionDAG::MorphNodeTo(llvm::SDNode*, unsigned int, llvm::SDVTList, llvm::ArrayRef<llvm::SDValue>) (/usr/local/bin/clang+++0x3259415)
#7 0x00000000032731d7 llvm::SelectionDAGISel::MorphNode(llvm::SDNode*, unsigned int, llvm::SDVTList, llvm::ArrayRef<llvm::SDValue>, unsigned int) (/usr/local/bin/clang+++0x32731d7)
#8 0x0000000003274050 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/usr/local/bin/clang+++0x3274050)
#9 0x0000000000eecdf3 (/usr/local/bin/clang+++0xeecdf3)
#10 0x000000000326f74f llvm::SelectionDAGISel::DoInstructionSelection() (/usr/local/bin/clang+++0x326f74f)
#11 0x000000000326eda0 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/local/bin/clang+++0x326eda0)
#12 0x000000000326e058 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/local/bin/clang+++0x326e058)
#13 0x000000000326bdc9 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/local/bin/clang+++0x326bdc9)
#14 0x0000000000eea3b1 (/usr/local/bin/clang+++0xeea3b1)
#15 0x0000000001b6e23e llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/usr/local/bin/clang+++0x1b6e23e)
#16 0x0000000001f1a51d llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/local/bin/clang+++0x1f1a51d)
#17 0x0000000001f21333 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/local/bin/clang+++0x1f21333)
#18 0x0000000001f1ac94 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/local/bin/clang+++0x1f1ac94)
#19 0x000000000281b393 (/usr/local/bin/clang+++0x281b393)
#20 0x00000000028160a7 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) (/usr/local/bin/clang+++0x28160a7)
#21 0x000000000334a30e (/usr/local/bin/clang+++0x334a30e)
#22 0x0000000003ed2df4 clang::ParseAST(clang::Sema&, bool, bool) (/usr/local/bin/clang+++0x3ed2df4)
#23 0x0000000002da9039 clang::FrontendAction::Execute() (/usr/local/bin/clang+++0x2da9039)
#24 0x0000000002d20ba6 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/usr/local/bin/clang+++0x2d20ba6)
#25 0x0000000002e4dd9e clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/usr/local/bin/clang+++0x2e4dd9e)
#26 0x00000000009eb1aa cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/usr/local/bin/clang+++0x9eb1aa)
#27 0x00000000009e9678 (/usr/local/bin/clang+++0x9e9678)
#28 0x0000000002bd6692 (/usr/local/bin/clang+++0x2bd6692)
#29 0x000000000257bfad llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/usr/local/bin/clang+++0x257bfad)
#30 0x0000000002bd630a clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, bool*) const (/usr/local/bin/clang+++0x2bd630a)
#31 0x0000000002ba777d clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const*&) const (/usr/local/bin/clang+++0x2ba777d)
#32 0x0000000002ba79c7 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const (/usr/local/bin/clang+++0x2ba79c7)
#33 0x0000000002bbe241 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) (/usr/local/bin/clang+++0x2bbe241)
#34 0x00000000009e8d4d main (/usr/local/bin/clang+++0x9e8d4d)
#35 0x00007fb2d24952e1 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e1)
#36 0x00000000009e6459 _start (/usr/local/bin/clang+++0x9e6459)
clang-13: error: clang frontend command failed with exit code 139 (use -v to see invocation)
clang version 13.0.0
Target: arm-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/local/bin
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9Wt1z2roS_2vIi8aMPzE85IHwkeZOSDKB9szcF49syaBbY_vIckL619-VZMBySFN3Tk-Hgi2tdn-7kvZDSlyQt-t5Qat84IYC7XBZ0hy9MrFDRSnYnv3AghV5hYo0HSI0sOcDe9p8BzfPtOQFqRPKERYCJztKBsF84I53QpTVwJsO3CV8tsCujodJsYeXLHs5_lgw-n80EfCasoxW8BtOPMf1Q3hSvIc_WDlwJ4bYkd181OsaxH5HpN6XUpxqsocDe_LEiy3He4T5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