Issue 63299
Summary [CodeGenPrepare][aarch64] build error
Labels
Assignees
Reporter Veyena
    Version:15.0.4

Assertion is not disabled when the Clang is built.

Reproduction Command
`BaseLine-org15.0.1/bin/clang-15 -cc1 -triple aarch64-unknown-linux-gnu -S -save-temps=cwd -disable-free -clear-ast-before-backend -main-file-name calc_ivdc.f -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=non-leaf -fmath-errno -ffp-contract=fast -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu a64fx -target-feature +neon -target-feature +v8.2a -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -fcoverage-compilation-dir=/home/gml/codedb/c_cpp_c/MITgcm/MITgcm/verification/exp4/build -resource-dir /home/gml/BiSheng-compiler-3.0.0.B012-aarch64-linux/lib/clang/15.0.4 -O3 -fdebug-compilation-dir=/home/gml/codedb/c_cpp_c/MITgcm/MITgcm/verification/exp4/build -ferror-limit 19 -funroll-loops -fno-signed-char -fgnuc-version=4.2.1 -fcommon -vectorize-loops -vectorize-slp -target-feature +outline-atomics -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o calc_ivdc.s -x ir calc_ivdc.ll`

error message:
Program arguments: /home/xingyushuai/src/llvm-project/BaseLine-org15.0.1/bin/clang-15 -cc1 -triple aarch64-unknown-linux-gnu -S -save-temps=cwd -disable-free -clear-ast-before-backend -main-file-name calc_ivdc.f -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=non-leaf -fmath-errno -ffp-contract=fast -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu a64fx -target-feature +neon -target-feature +v8.2a -target-abi aapcs -fallow-half-arguments-and-returns -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -fcoverage-compilation-dir=/home/gml/codedb/c_cpp_c/MITgcm/MITgcm/verification/exp4/build -resource-dir /home/gml/BiSheng-compiler-3.0.0.B012-aarch64-linux/lib/clang/15.0.4 -O3 -fdebug-compilation-dir=/home/gml/codedb/c_cpp_c/MITgcm/MITgcm/verification/exp4/build -ferror-limit 19 -funroll-loops -fno-signed-char -fgnuc-version=4.2.1 -fcommon -vectorize-loops -vectorize-slp -target-feature +outline-atomics -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o calc_ivdc.s -x ir calc_ivdc.ll
1.      Code generation
2.      Running pass 'Function Pass Manager' on module 'calc_ivdc.ll'.
3.      Running pass 'CodeGen Prepare' on function '@calc_ivdc_'
 #0 0x0000aaaae14fa010 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/xingyushuai/src/llvm-project/llvm/lib/Support/Unix/Signals.inc:569:22
 #1 0x0000aaaae14fa0e0 PrintStackTraceSignalHandler(void*) /home/xingyushuai/src/llvm-project/llvm/lib/Support/Unix/Signals.inc:636:1
 #2 0x0000aaaae14f7f5c llvm::sys::RunSignalHandlers() /home/xingyushuai/src/llvm-project/llvm/lib/Support/Signals.cpp:103:20
 #3 0x0000aaaae14f9890 SignalHandler(int) /home/xingyushuai/src/llvm-project/llvm/lib/Support/Unix/Signals.inc:407:1
 #4 0x0000ffff8d6437c0 (linux-vdso.so.1+0x7c0)
 #5 0x0000ffff8d2f9e80 raise (/lib64/libc.so.6+0x34e80)
 #6 0x0000ffff8d2fb374 abort (/lib64/libc.so.6+0x36374)
 #7 0x0000ffff8d2f2dd4 (/lib64/libc.so.6+0x2ddd4)
 #8 0x0000ffff8d2f2e5c (/lib64/libc.so.6+0x2de5c)
 #9 0x0000aaaadf127a1c llvm::LinearPolySize<llvm::TypeSize>::getFixedValue() const /home/xingyushuai/src/llvm-project/llvm/include/llvm/Support/TypeSize.h:313:5
#10 0x0000aaaadf122774 llvm::TypeSize::getFixedSize() const /home/xingyushuai/src/llvm-project/llvm/include/llvm/Support/TypeSize.h:444:59
#11 0x0000aaaadf634e3c areExtractShuffleVectors(llvm::Value*, llvm::Value*)::'lambda'(llvm::Value*, llvm::Value*)::operator()(llvm::Value*, llvm::Value*) const /home/xingyushuai/src/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:12700:57
#12 0x0000aaaadf635010 areExtractShuffleVectors(llvm::Value*, llvm::Value*) /home/xingyushuai/src/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:12718:22
#13 0x0000aaaadf635b14 llvm::AArch64TargetLowering::shouldSinkOperands(llvm::Instruction*, llvm::SmallVectorImpl<llvm::Use*>&) const /home/xingyushuai/src/llvm-project/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:12882:33
#14 0x0000aaaae01c1b80 (anonymous namespace)::CodeGenPrepare::tryToSinkFreeOperands(llvm::Instruction*) /home/xingyushuai/src/llvm-project/llvm/lib/CodeGen/CodeGenPrepare.cpp:6957:31
#15 0x0000aaaae01c6020 (anonymous namespace)::CodeGenPrepare::optimizeInst(llvm::Instruction*, bool&) /home/xingyushuai/src/llvm-project/llvm/lib/CodeGen/CodeGenPrepare.cpp:8035:28
#16 0x0000aaaae01c6428 (anonymous namespace)::CodeGenPrepare::optimizeBlock(llvm::BasicBlock&, bool&) /home/xingyushuai/src/llvm-project/llvm/lib/CodeGen/CodeGenPrepare.cpp:8087:31
#17 0x0000aaaae01aaa94 (anonymous namespace)::CodeGenPrepare::runOnFunction(llvm::Function&) /home/xingyushuai/src/llvm-project/llvm/lib/CodeGen/CodeGenPrepare.cpp:554:34
#18 0x0000aaaae0ab20d0 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/xingyushuai/src/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1430:40
#19 0x0000aaaae0ab2328 llvm::FPPassManager::runOnModule(llvm::Module&) /home/xingyushuai/src/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1476:29
#20 0x0000aaaae0ab272c (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /home/xingyushuai/src/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1545:38
#21 0x0000aaaae0aadee8 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/xingyushuai/src/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:535:55
#22 0x0000aaaae0ab2f24 llvm::legacy::PassManager::run(llvm::Module&) /home/xingyushuai/src/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1672:17
#23 0x0000aaaae1a2c3e0 (anonymous namespace)::EmitAssemblyHelper::RunCodegenPipeline(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>&, std::unique_ptr<llvm::ToolOutputFile, std::default_delete<llvm::ToolOutputFile>>&) /home/xingyushuai/src/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1012:51
#24 0x0000aaaae1a2c594 (anonymous namespace)::EmitAssemblyHelper::EmitAssembly(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream>>) /home/xingyushuai/src/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1037:17
#25 0x0000aaaae1a2d234 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>>) /home/xingyushuai/src/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1193:25
#26 0x0000aaaae2d4ba28 clang::CodeGenAction::ExecuteAction() /home/xingyushuai/src/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1214:20
#27 0x0000aaaae2434488 clang::FrontendAction::Execute() /home/xingyushuai/src/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1041:38
#28 0x0000aaaae237eacc clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /home/xingyushuai/src/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1035:42
#29 0x0000aaaae25d39e0 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /home/xingyushuai/src/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:266:38
#30 0x0000aaaadf0f7d98 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /home/xingyushuai/src/llvm-project/clang/tools/driver/cc1_main.cpp:250:40
#31 0x0000aaaadf0ea4f0 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) /home/xingyushuai/src/llvm-project/clang/tools/driver/driver.cpp:317:20
#32 0x0000aaaadf0eaa70 clang_main(int, char**) /home/xingyushuai/src/llvm-project/clang/tools/driver/driver.cpp:388:26
#33 0x0000aaaadf1165e0 main /home/xingyushuai/src/llvm-project/build/tools/clang/tools/driver/clang-driver.cpp:11:63
#34 0x0000ffff8d2e5bec __libc_start_main (/lib64/libc.so.6+0x20bec)
#35 0x0000aaaadf0e90cc _start (/home/xingyushuai/src/llvm-project/BaseLine-org15.0.1/bin/clang-15+0x134e0cc)
Aborted (core dumped)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to