mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add option to enable global-isel on arm64 archs
LLVM will eventually switch over to using global-isel on arm64 archs. Setting this option (SWIFT_ENABLE_GLOBAL_ISEL_ARM64) can be used to experiment with that in Swift before the switch happens.
This commit is contained in:
@@ -1873,6 +1873,12 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
}
|
||||
}
|
||||
|
||||
if (SWIFT_ENABLE_GLOBAL_ISEL_ARM64 &&
|
||||
(Triple.getArch() == llvm::Triple::aarch64 ||
|
||||
Triple.getArch() == llvm::Triple::aarch64_32)) {
|
||||
Opts.EnableGlobalISel = true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user