[PATCH] D109963: [AArch64] Split bitmask immediate of bitwise AND operation
Sterling Augustine via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 28 17:24:39 PDT 2021
saugustine added a comment.
Hi, I have tracked a crash down to this patch. This cases passes at f701505c45c7 <https://reviews.llvm.org/rGf701505c45c708338202532f0f14af55b5509794> and fails at this change. The target is aarch64 and the case is run at -O1.
Unfortunately, the test case is very large and I am trying to reduce it. But for now, here is the stack trace of the failure:
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'util-e32393.cpp'.
4. Running pass 'Live Variable Analysis' on function '@_ZN8colossus13ParseOpenModeENSt3__u17basic_string_viewIcNS0_11char_traitsIcEEEE'
#0 0x0000000004d0cd9a llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/Support/Unix/Signals.inc:565:11
#1 0x0000000004d0cf6b PrintStackTraceSignalHandler(void*) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/Support/Unix/Signals.inc:632:1
#2 0x0000000004d0b50b llvm::sys::RunSignalHandlers() /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/Support/Signals.cpp:96:5
#3 0x0000000004d0d6e1 SignalHandler(int) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/Support/Unix/Signals.inc:407:1
#4 0x00007f30c11dd140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x14140)
#5 0x00007f30c0c7cce1 raise ./signal/../sysdeps/unix/sysv/linux/raise.c:51:1
#6 0x00007f30c0c66537 abort ./stdlib/abort.c:81:7
#7 0x00007f30c0c6640f get_sysdep_segment_value ./intl/loadmsgcat.c:509:8
#8 0x00007f30c0c6640f _nl_load_domain ./intl/loadmsgcat.c:970:34
#9 0x00007f30c0c75662 (/lib/x86_64-linux-gnu/libc.so.6+0x34662)
#10 0x00000000038aff71 llvm::LiveVariables::HandleVirtRegUse(llvm::Register, llvm::MachineBasicBlock*, llvm::MachineInstr&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/CodeGen/LiveVariables.cpp:131:20
#11 0x00000000038b27fc llvm::LiveVariables::runOnInstr(llvm::MachineInstr&, llvm::SmallVectorImpl<unsigned int>&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/CodeGen/LiveVariables.cpp:540:7
#12 0x00000000038b2c9d llvm::LiveVariables::runOnBlock(llvm::MachineBasicBlock*, unsigned int) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/CodeGen/LiveVariables.cpp:572:25
#13 0x00000000038b331d llvm::LiveVariables::runOnMachineFunction(llvm::MachineFunction&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/CodeGen/LiveVariables.cpp:640:5
#14 0x00000000039676b7 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:72:8
#15 0x000000000404db6c llvm::FPPassManager::runOnFunction(llvm::Function&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1439:23
#16 0x0000000004052e95 llvm::FPPassManager::runOnModule(llvm::Module&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1485:16
#17 0x000000000404e534 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1554:23
#18 0x000000000404e058 llvm::legacy::PassManagerImpl::run(llvm::Module&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:542:16
#19 0x00000000040531a1 llvm::legacy::PassManager::run(llvm::Module&) /usr/local/google/home/saugustine/llvm-new/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1681:3
#20 0x00000000051cd032 (anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1516:3
#21 0x00000000051ca597 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/google/home/saugustine/llvm-new/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1675:5
#22 0x0000000006808fe0 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:334:7
#23 0x0000000008649013 clang::ParseAST(clang::Sema&, bool, bool) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/Parse/ParseAST.cpp:178:12
#24 0x0000000005caa882 clang::ASTFrontendAction::ExecuteAction() /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1065:1
#25 0x00000000068047bb clang::CodeGenAction::ExecuteAction() /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1072:5
#26 0x0000000005caa248 clang::FrontendAction::Execute() /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/Frontend/FrontendAction.cpp:960:7
#27 0x0000000005bdfb12 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:974:23
#28 0x0000000005e74716 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:278:8
#29 0x00000000014ea90d cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/tools/driver/cc1_main.cpp:246:13
#30 0x00000000014dd3d8 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&) /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/tools/driver/driver.cpp:317:5
#31 0x00000000014dc3f1 main /usr/local/google/home/saugustine/llvm-new/llvm-project/clang/tools/driver/driver.cpp:388:5
#32 0x00007f30c0c67d0a __libc_start_main ./csu/../csu/libc-start.c:308:16
#33 0x00000000014dbbea _start (/usr/local/google/home/saugustine/llvm-new/build/bin/clang+0x14dbbea)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109963/new/
https://reviews.llvm.org/D109963
More information about the llvm-commits
mailing list