Open 0acf245c-f0fa-406f-afb9-4746d10f0359 opened 7 years ago
Issue Description:
Stack trace:
sil-opt: /home/davide/work/swift/swift/lib/SIL/SILInstruction.cpp:1005: bool swift::SILInstruction::mayRelease() const: Assertion `!SILModuleConventions(getModule()).useLoweredAddresses()' failed. #​0 0x00000000037a470f llvm::sys::PrintStackTrace(llvm::raw_ostream&) /home/davide/work/swift/llvm/lib/Support/Unix/Signals.inc:398:13 #​1 0x00000000037a4a16 bool __gnu_cxx::operator!=<std::pair<void (*)(void*), void*>*, std::vector<std::pair<void (*)(void*), void*>, std::allocator<std::pair<void (*)(void*), void*> > > >(__gnu_cxx::__normal_iterator<std::pair<void (*)(void*), void*>*, std::vector<std::pair<void (*)(void*), void*>, std::allocator<std::pair<void (*)(void*), void*> > > > const&, __gnu_cxx::__normal_iterator<std::pair<void (*)(void*), void*>*, std::vector<std::pair<void (*)(void*), void*>, std::allocator<std::pair<void (*)(void*), void*> > > > const&) /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/stl_iterator.h:880:27 #​2 0x00000000037a4a16 llvm::sys::RunSignalHandlers() /home/davide/work/swift/llvm/lib/Support/Signals.cpp:49:0 #​3 0x00000000037a4a16 SignalHandler(int) /home/davide/work/swift/llvm/lib/Support/Unix/Signals.inc:242:0 #​4 0x00007fb6f6295c30 __restore_rt (/lib64/libpthread.so.0+0x10c30) #​5 0x00007fb6f49f4765 __GI_raise (/lib64/libc.so.6+0x34765) #​6 0x00007fb6f49f636a __GI_abort (/lib64/libc.so.6+0x3636a) #​7 0x00007fb6f49ecf97 __assert_fail_base (/lib64/libc.so.6+0x2cf97) #​8 0x00007fb6f49ed042 (/lib64/libc.so.6+0x2d042) #​9 0x0000000000d2a093 swift::SILInstruction::mayRelease() const /home/davide/work/swift/swift/lib/SIL/SILInstruction.cpp:991:3 #​10 0x00000000008d4483 swift::ConsumedArgToEpilogueReleaseMatcher::collectMatchingReleases(swift::SILBasicBlock*) /home/davide/work/swift/swift/lib/SILOptimizer/Analysis/ARCAnalysis.cpp:861:11 #​11 0x00000000008d2f39 swift::ConsumedArgToEpilogueReleaseMatcher::findMatchingReleases(swift::SILBasicBlock*) /home/davide/work/swift/swift/lib/SILOptimizer/Analysis/ARCAnalysis.cpp:925:3 #​12 0x00000000008d2f39 swift::ConsumedArgToEpilogueReleaseMatcher::recompute() /home/davide/work/swift/swift/lib/SILOptimizer/Analysis/ARCAnalysis.cpp:696:0 #​13 0x0000000000795c72 (anonymous namespace)::ARCCodeMotion::run() /home/davide/work/swift/swift/lib/SILOptimizer/Transforms/ARCCodeMotion.cpp:1093:38 #​14 0x00000000006fa5f8 llvm::SmallVectorTemplateCommon<swift::SILAnalysis*, void>::begin() /home/davide/work/swift/llvm/include/llvm/ADT/SmallVector.h:115:45 #​15 0x00000000006fa5f8 swift::SILPassManager::analysesUnlocked() /home/davide/work/swift/swift/lib/SILOptimizer/PassManager/PassManager.cpp:264:0 #​16 0x00000000006fa5f8 swift::SILPassManager::runPassOnFunction(swift::SILFunctionTransform*, swift::SILFunction*) /home/davide/work/swift/swift/lib/SILOptimizer/PassManager/PassManager.cpp:341:0 #​17 0x00000000006fb40b std::vector<swift::SILPassManager::WorklistEntry, std::allocator<swift::SILPassManager::WorklistEntry> >::operator[](unsigned long) /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/stl_vector.h:781:32 #​18 0x00000000006fb40b swift::SILPassManager::runFunctionPasses(llvm::ArrayRef<swift::SILFunctionTransform*>) /home/davide/work/swift/swift/lib/SILOptimizer/PassManager/PassManager.cpp:426:0 #​19 0x00000000006fc7ac llvm::SmallVectorImpl<swift::SILFunctionTransform*>::clear() /home/davide/work/swift/llvm/include/llvm/ADT/SmallVector.h:349:24 #​20 0x00000000006fc7ac swift::SILPassManager::runOneIteration() /home/davide/work/swift/swift/lib/SILOptimizer/PassManager/PassManager.cpp:525:0 #​21 0x0000000000468fe8 __gnu_cxx::__normal_iterator<swift::SILPassPipeline const*, std::vector<swift::SILPassPipeline, std::allocator<swift::SILPassPipeline> > >::operator++() /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/stl_iterator.h:799:2 #​22 0x0000000000468fe8 swift::SILPassManager::executePassPipelinePlan(swift::SILPassPipelinePlan const&) /home/davide/work/swift/swift/include/swift/SILOptimizer/PassManager/PassManager.h:247:0 #​23 0x000000000046608e std::_Vector_base<swift::SILPassPipeline, std::allocator<swift::SILPassPipeline> >::~_Vector_base() /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/stl_vector.h:160:37 #​24 0x000000000046608e std::vector<swift::SILPassPipeline, std::allocator<swift::SILPassPipeline> >::~vector() /usr/lib/gcc/x86_64-redhat-linux/6.3.1/../../../../include/c++/6.3.1/bits/stl_vector.h:427:0 #​25 0x000000000046608e swift::SILPassPipelinePlan::~SILPassPipelinePlan() /home/davide/work/swift/swift/include/swift/SILOptimizer/PassManager/PassPipeline.h:49:0 #​26 0x000000000046608e runCommandLineSelectedPasses(swift::SILModule*, swift::irgen::IRGenModule*) /home/davide/work/swift/swift/tools/sil-opt/SILOpt.cpp:242:0 #​27 0x000000000046608e main /home/davide/work/swift/swift/tools/sil-opt/SILOpt.cpp:442:0 #​28 0x00007fb6f49e0731 __libc_start_main (/lib64/libc.so.6+0x20731) #​29 0x0000000000464809 _start (./sil-opt+0x464809) Stack dump: 0. Program arguments: ./sil-opt /home/davide/work/swift/swift/test/SILOptimizer//access_enforcement_selection.sil -o /dev/null -verify-abort-on-failure=false -array-element-propagation -dce -stack-promotion -dead-arg-signature-opt -normal-simplify-cfg -cse -remove-redundant-overflow-checks -late-codemotion -release-hoisting -lower-aggregate-instrs 1. While running pass #​18 SILFunctionTransform "SIL release Hoisting" on SILFunction "@markFuncEscape".
swift revision:
commit 746bfc6d59931d8e5ae1cb614ea0c60ccb8d5c4d Author: Alex Hoppen <alex@alexhoppen.de> Date: Thu Nov 9 20:08:34 2017 +0100 [Refactoring] Add refactoring action to move type members to extension (#12795) This implements SR-6297.
invocation (the test is in tree):
./sil-opt /home/davide/work/swift/swift/test/SILOptimizer//access_enforcement_selection.sil -o /dev/null -verify-abort-on-failure=false -array-element-propagation -dce -stack-promotion -dead-arg-signature-opt -normal-simplify-cfg -cse -remove-redundant-overflow-checks -late-codemotion -release-hoisting -lower-aggregate-instrs
cc: @eeckstein/@gottesmm
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Compiler | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: 6a3015d953c1506edd9d9cfbaf5f3c74Issue Description:
Stack trace:
swift revision:
invocation (the test is in tree):