Skip to content

Commit 029765c

Browse files
authored
Merge pull request #36424 from varungandhi-apple/vg-remove-cmake-flag
2 parents b85b7f1 + 7e6fb9f commit 029765c

File tree

6 files changed

+2
-18
lines changed

6 files changed

+2
-18
lines changed

CMakeLists.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -196,13 +196,6 @@ if(SWIFT_PROFDATA_FILE AND EXISTS ${SWIFT_PROFDATA_FILE})
196196
add_definitions("-fprofile-instr-use=${SWIFT_PROFDATA_FILE}")
197197
endif()
198198

199-
option(USE_SWIFT_ASYNC_LOWERING
200-
"Indicates if Swiftc should use async-specific lowering for async
201-
functions if it is supported for the target. The runtime also checks
202-
this setting before using async-specific attributes. This only applies
203-
to the async calling convention and not to the async context attribute."
204-
TRUE)
205-
206199
#
207200
# User-configurable Swift Standard Library specific options.
208201
#

include/swift/AST/IRGenOptions.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,6 @@ class IRGenOptions {
338338
/// Pointer authentication.
339339
PointerAuthOptions PointerAuth;
340340

341-
/// Use async-specific lowering for async functions if it is supported for
342-
/// the target.
343-
bool UseAsyncLowering = USE_SWIFT_ASYNC_LOWERING;
344-
345341
/// The different modes for dumping IRGen type info.
346342
enum class TypeInfoDumpFilter {
347343
All,

include/swift/Config.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@
88

99
#cmakedefine HAVE_PROC_PID_RUSAGE 1
1010

11-
#cmakedefine01 USE_SWIFT_ASYNC_LOWERING
12-
1311
#endif // SWIFT_CONFIG_H

include/swift/Runtime/CMakeConfig.h.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@
77
#cmakedefine01 SWIFT_BNI_OS_BUILD
88
#cmakedefine01 SWIFT_BNI_XCODE_BUILD
99

10-
#cmakedefine01 USE_SWIFT_ASYNC_LOWERING
11-
1210
#endif

include/swift/Runtime/Config.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ extern uintptr_t __COMPATIBILITY_LIBRARIES_CANNOT_CHECK_THE_IS_SWIFT_BIT_DIRECTL
184184

185185
// SWIFT_CC(swiftasync) is the Swift async calling convention.
186186
// We assume that it supports mandatory tail call elimination.
187-
#if __has_feature(swiftasynccc) && USE_SWIFT_ASYNC_LOWERING && \
188-
__has_attribute(swiftasynccall)
187+
#if __has_feature(swiftasynccc) && __has_attribute(swiftasynccall)
189188
#define SWIFT_CC_swiftasync __attribute__((swiftasynccall))
190189
#else
191190
#define SWIFT_CC_swiftasync SWIFT_CC_swift

lib/IRGen/IRGenModule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
551551
bool isAsyncCCSupported =
552552
clangASTContext.getTargetInfo().checkCallingConvention(clang::CC_SwiftAsync)
553553
== clang::TargetInfo::CCCR_OK;
554-
if (opts.UseAsyncLowering && isAsyncCCSupported) {
554+
if (isAsyncCCSupported) {
555555
SwiftAsyncCC = llvm::CallingConv::SwiftTail;
556556
AsyncTailCallKind = llvm::CallInst::TCK_MustTail;
557557
} else {

0 commit comments

Comments
 (0)