Skip to content

Don't optionally enable arm64_32 GlobalISel #39194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ option(SWIFT_ENABLE_DISPATCH
TRUE)

option(SWIFT_ENABLE_GLOBAL_ISEL_ARM64
"Enable global isel on arm64, arm64e, arm64_32"
"Enable global isel on arm64"
FALSE)

cmake_dependent_option(SWIFT_BUILD_SYNTAXPARSERLIB
Expand Down
3 changes: 1 addition & 2 deletions lib/Frontend/CompilerInvocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1891,8 +1891,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
}

if (SWIFT_ENABLE_GLOBAL_ISEL_ARM64 &&
(Triple.getArch() == llvm::Triple::aarch64 ||
Triple.getArch() == llvm::Triple::aarch64_32) &&
Triple.getArch() == llvm::Triple::aarch64 &&
Triple.getArchName() != "arm64e") {
Opts.EnableGlobalISel = true;
}
Expand Down