Skip to content

Instantly share code, notes, and snippets.

@kateinoigakukun
Last active March 8, 2020 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kateinoigakukun/819302b29a5f4af79a89cb172e0db9d0 to your computer and use it in GitHub Desktop.
Save kateinoigakukun/819302b29a5f4af79a89cb172e0db9d0 to your computer and use it in GitHub Desktop.
wasm-DEVELOPMENT-SNAPSHOT-2020-03-05-a
diff --git a/cmake/modules/SwiftSource.cmake b/cmake/modules/SwiftSource.cmake
index 9da9b4ffd9..0c8f201499 100644
--- a/cmake/modules/SwiftSource.cmake
+++ b/cmake/modules/SwiftSource.cmake
@@ -229,7 +229,7 @@ function(_add_variant_swift_compile_flags
is_build_type_optimized("${build_type}" optimized)
if(optimized)
- list(APPEND result "-O")
+ list(APPEND result "-O" "-Xfrontend" "-disable-llvm-optzns" "-Xllvm" "-sil-opt-pass-count=226755" "-Xllvm" "-sil-print-pass-name")
else()
list(APPEND result "-Onone")
endif()
diff --git a/lib/IRGen/IRGen.cpp b/lib/IRGen/IRGen.cpp
index 1b96deca94..0c13e57576 100644
--- a/lib/IRGen/IRGen.cpp
+++ b/lib/IRGen/IRGen.cpp
@@ -225,7 +225,7 @@ void swift::performLLVMOptimizations(const IRGenOptions &Opts,
addSwiftContractPass);
}
- if (RunSwiftSpecificLLVMOptzns)
+ // if (RunSwiftSpecificLLVMOptzns)
addCoroutinePassesToExtensionPoints(PMBuilder);
if (Opts.Sanitizers & SanitizerKind::Address) {
diff --git a/stdlib/public/core/CMakeLists.txt b/stdlib/public/core/CMakeLists.txt
index dd1ef587f2..8f3e37dd34 100644
--- a/stdlib/public/core/CMakeLists.txt
+++ b/stdlib/public/core/CMakeLists.txt
@@ -284,7 +284,7 @@ if(SWIFT_STDLIB_SIL_DEBUGGING)
list(APPEND swift_stdlib_compile_flags "-Xfrontend" "-gsil")
endif()
-list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
+# list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization")
if(SWIFT_STDLIB_ENABLE_STDLIBCORE_EXCLUSIVITY_CHECKING)
list(APPEND swift_stdlib_compile_flags "-enforce-exclusivity=checked")
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

View raw

(Sorry about that, but we can’t show files that are this big right now.)

@kateinoigakukun
Copy link
Author

(wasminspect) run
Function exec failure Memory(AccessOutOfBounds(Some(18446744073709551612), 28573696))
(wasminspect) bt
0: _swift_release_dealloc
1: bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int)
2: swift_release
3: $ss15LazyMapSequenceVwxx
4: $ss14_CollectionBoxCfD
5: _swift_release_dealloc
6: bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int)
7: swift_release
8: $ss20_adHocPrint_unlocked___07isDebugC0yx_s6MirrorVq_zSbts16TextOutputStreamR_r0_lF
9: $ss15_print_unlockedyyx_q_zts16TextOutputStreamR_r0_lF
10: $ss26DefaultStringInterpolationV06appendC0yyxlF
11: main
12: __original_main
13: _start
(wasminspect)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment