-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #109169 - bjorn3:sync_cg_clif-2023-03-15, r=bjorn3
Sync rustc_codegen_cranelift Bunch of bug fixes this time. Also an update to Cranelift 0.93 which adds a brand new optimization pass which cg_clif exposes when using `--release`. And various improvements to cg_clif's test suite, making it faster to run. And finally two small perf improvements. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
- Loading branch information
Showing
52 changed files
with
873 additions
and
792 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
compiler/rustc_codegen_cranelift/.github/workflows/abi-cafe.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Abi-cafe | ||
|
||
on: | ||
- push | ||
|
||
jobs: | ||
abi_cafe: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 60 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.env.TARGET_TRIPLE }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
env: | ||
TARGET_TRIPLE: x86_64-unknown-linux-gnu | ||
- os: macos-latest | ||
env: | ||
TARGET_TRIPLE: x86_64-apple-darwin | ||
- os: windows-latest | ||
env: | ||
TARGET_TRIPLE: x86_64-pc-windows-msvc | ||
- os: windows-latest | ||
env: | ||
TARGET_TRIPLE: x86_64-pc-windows-gnu | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Cache cargo target dir | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/cg_clif | ||
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }} | ||
|
||
- name: Set MinGW as the default toolchain | ||
if: matrix.env.TARGET_TRIPLE == 'x86_64-pc-windows-gnu' | ||
run: rustup set default-host x86_64-pc-windows-gnu | ||
|
||
- name: Use sparse cargo registry | ||
run: | | ||
cat >> ~/.cargo/config.toml <<EOF | ||
[unstable] | ||
sparse-registry = true | ||
EOF | ||
- name: Prepare dependencies | ||
run: ./y.rs prepare | ||
|
||
- name: Build | ||
run: ./y.rs build --sysroot none | ||
|
||
- name: Test abi-cafe | ||
env: | ||
TARGET_TRIPLE: ${{ matrix.env.TARGET_TRIPLE }} | ||
run: ./y.rs abi-cafe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ perf.data.old | |
/dist | ||
/rust | ||
/download | ||
/git-fixed-subtree.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.