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
[SR-15531] Major Compile Speed Regression when Compiling postgres-nio on Latest Swift Snapshot #57834
Comments
We've seen the same on an internal codebase during aarch64 builds. Anecdotally, it seems like the two steps that seemed to drag on were linking and "Wrapping AST for [target] for debugging". Haven't yet tried with a top-of-tree build newer than 2021-11-20. |
Comment by Reid Nantes (JIRA) Swift Development Snapshot 2021-12-06 still has this issue |
This is an LLVM issue with GlobalISel. See llvm/llvm-project#53109 for more information |
Comment by Reid Nantes (JIRA) Swift Development Snapshot 2022-01-09 still has this issue |
rnantes (JIRA User) It uses the same revision of LLVM, so nothing changed |
Comment by Reid Nantes (JIRA) @asl Posted just to show this issue still is relevant. I've also posted in the [Swift Forums | https://forums.swift.org/t/major-compile-performance-regression-swift-5-6/54604] |
@swift-ci create |
Ok, here is the full story. The issue was exposed by LLVM mainline Swift is currently using stable/20210726 branch, so was unlucky enough to make this branch in a ~3 week window between these changes 🙂 I submitted apple#3804 which backports |
The PR was merged. Likely it should be cherry-picked to an appropriate Swift 5.6 branches. |
Backport to swift/release/5.6 submitted in apple/llvm-project#3853 |
rnantes (JIRA User) Will you please confirm that the issue had gone with the latest swift nightly snapshot? So we can close this issue. Thanks! |
Comment by Reid Nantes (JIRA) I can confirm this now works as expected on the latest swift nightly snapshot. Thank you @asl for your work this. |
Environment
Building on: M1 Xcode Version 13.2 beta 2 (13C5081f)
Also fails using arm64 docker image: nightly-main-focal
Swift Toochain Snapshot: swift-DEVELOPMENT-SNAPSHOT-2021-11-20
Additional Detail from JIRA
md5: 90440516aba2a6ac967a7cf807cd91d7
Issue Description:
Compile speed regression when compiling latest release of postgres-nio on latest Swift Toochain snapshot: swift-DEVELOPMENT-SNAPSHOT-2021-11-20.
~67 min compile time on M1 Max using latest snapshot vs ~1 min with Swift 5.5 release
postgres-nio github issue
The text was updated successfully, but these errors were encountered: