<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [SROA][TBAA] "Did not see access type in access path!""
href="https://bugs.llvm.org/show_bug.cgi?id=49825">49825</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[SROA][TBAA] "Did not see access type in access path!"
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aheejin@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=24714" name="attach_24714" title="cpp file">attachment 24714</a> <a href="attachment.cgi?id=24714&action=edit" title="cpp file">[details]</a></span>
cpp file
After <a href="https://reviews.llvm.org/D95826">https://reviews.llvm.org/D95826</a>
(<a href="https://github.com/llvm/llvm-project/commit/40862b1a7486a969ff044cd240aad24f4183cc10">https://github.com/llvm/llvm-project/commit/40862b1a7486a969ff044cd240aad24f4183cc10</a>),
the attached file started failing to compile with -O1. The test case was
reduced with creduce from a large file and manually modified further to
simplify.
Command:
$ clang++ -O1 -c bug.cpp
bug.cpp:18:3: warning: expression result unused [-Wunused-value]
[bd, bb, bc] {};
^~~~~~~~~~~~~~~
Did not see access type in access path!
store i64 %bb.coerce1, i64* %.fca.1.gep, align 8, !tbaa !9
!9 = !{!3, !5, i64 0}
in function _ZN2ax2baEMS_FvvE2an2ar
fatal error: error in backend: Broken function found, compilation aborted!
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments:
/usr/local/google/home/aheejin/llvm-bisect/install/bin/clang++ -O1 -c bug.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'bug.cpp'.
4. Running pass 'Module Verifier' on function '@_ZN2ax2baEMS_FvvE2an2ar'
#0 0x00007ff6d7fc5de3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0x199de3)
#1 0x00007ff6d7fc3aee llvm::sys::RunSignalHandlers()
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0x197aee)
#2 0x00007ff6d7fc518d llvm::sys::CleanupOnSignal(unsigned long)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0x19918d)
#3 0x00007ff6d7eef8b3 (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long)
CrashRecoveryContext.cpp:0:0
#4 0x00007ff6d7eef82f llvm::CrashRecoveryContext::HandleExit(int)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0xc382f)
#5 0x00007ff6d7fc0287 llvm::sys::Process::Exit(int, bool)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0x194287)
#6 0x0000000000413680
llvm::DenseMapBase<llvm::DenseMap<llvm::AliasSetTracker::ASTCallbackVH,
llvm::AliasSet::PointerRec*, llvm::AliasSetTracker::ASTCallbackVHDenseMapInfo,
llvm::detail::DenseMapPair<llvm::AliasSetTracker::ASTCallbackVH,
llvm::AliasSet::PointerRec*> >, llvm::AliasSetTracker::ASTCallbackVH,
llvm::AliasSet::PointerRec*, llvm::AliasSetTracker::ASTCallbackVHDenseMapInfo,
llvm::detail::DenseMapPair<llvm::AliasSetTracker::ASTCallbackVH,
llvm::AliasSet::PointerRec*> >::destroyAll()
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/clang+++0x413680)
#7 0x00007ff6d7efee62 llvm::report_fatal_error(llvm::Twine const&, bool)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0xd2e62)
#8 0x00007ff6d7efed38
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0xd2d38)
#9 0x00007ff6d841a94f
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMCore.so.13git+0x2bc94f)
#10 0x00007ff6d8385fe8 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMCore.so.13git+0x227fe8)
#11 0x00007ff6d838c7a8 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMCore.so.13git+0x22e7a8)
#12 0x00007ff6d8386697 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMCore.so.13git+0x228697)
#13 0x00007ff6db367aa3 (anonymous
namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction,
std::unique_ptr<llvm::raw_pwrite_stream,
std::default_delete<llvm::raw_pwrite_stream> >) BackendUtil.cpp:0:0
#14 0x00007ff6db36111f 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> >)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangCodeGen.so.13git+0xcb11f)
#15 0x00007ff6db693937
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangCodeGen.so.13git+0x3fd937)
#16 0x00007ff6d5c17683 clang::ParseAST(clang::Sema&, bool, bool)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/../lib/libclangParse.so.13git+0x37683)
#17 0x00007ff6d9d5a3a3 clang::FrontendAction::Execute()
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangFrontend.so.13git+0x1283a3)
#18 0x00007ff6d9cc92f3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangFrontend.so.13git+0x972f3)
#19 0x00007ff6dba09912
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangFrontendTool.so.13git+0x4912)
#20 0x0000000000413357 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/clang+++0x413357)
#21 0x00000000004112c2 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&)
driver.cpp:0:0
#22 0x00007ff6d9a4f542 void llvm::function_ref<void
()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__cxx11::basic_string<char, std::char_traits<char>,</span >
std::allocator<char> >*, bool*) const::$_1>(long) Job.cpp:0:0
#23 0x00007ff6d7eef7c7
llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libLLVMSupport.so.13git+0xc37c7)
#24 0x00007ff6d9a4ef57
clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef>
<span class="quote">>, std::__cxx11::basic_string<char, std::char_traits<char>,</span >
std::allocator<char> >*, bool*) const
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangDriver.so.13git+0xabf57)
#25 0x00007ff6d9a16ae4
clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&,
clang::driver::Command const*&) const
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangDriver.so.13git+0x73ae4)
#26 0x00007ff6d9a17027
clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&) const
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangDriver.so.13git+0x74027)
#27 0x00007ff6d9a32a58
clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&,
llvm::SmallVectorImpl<std::pair<int, clang::driver::Command const*> >&)
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/../lib/libclangDriver.so.13git+0x8fa58)
#28 0x0000000000410c21 main
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/clang+++0x410c21)
#29 0x00007ff6d7962d0a __libc_start_main ./csu/../csu/libc-start.c:308:16
#30 0x000000000040dffa _start
(/usr/local/google/home/aheejin/llvm-bisect/install/bin/clang+++0x40dffa)
clang-13: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 13.0.0 (<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</a>
223dcdcfbe23affdf17ada7f023ee1872fd76160)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/google/home/aheejin/llvm-bisect/install/bin
clang-13: note: diagnostic msg:
********************</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>