Skip to content

Commit dad2066

Browse files
authored
CI: Use new dmd-pgo Makefile target in perf.yml (#23856)
1 parent 10859b8 commit dad2066

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/perf.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
MODEL: 64
2626
FULL_BUILD: false
2727
HOST_DMD: ldc-1.42.0
28-
ENABLE_LTO: 1
2928
defaults:
3029
run:
3130
shell: bash
@@ -79,17 +78,13 @@ jobs:
7978
source ~/dlang/*/activate
8079
BASE_SHA="${{ steps.refs.outputs.base }}"
8180
82-
# Check out a ref and build a plain dmd + phobos, then dmd-pgo trains a profile
83-
# on the ref's own testsuite and rebuilds with it.
81+
# Check out a ref in an isolated temp dir, clone phobos and build (LTO+PGO'd dmd, druntime and phobos).
8482
setup_ref() {
8583
local dir="$RUNNER_TEMP/$2/dmd"
8684
mkdir -p "$RUNNER_TEMP/$2"
8785
git worktree add --force "$dir" "$1"
8886
( cd "$dir" && ci/run.sh setup_repos "${{ steps.refs.outputs.branch }}" )
89-
( cd "$dir" && $DMD -of=generated/build -g compiler/src/build.d )
90-
( cd "$dir" && generated/build HOST_DMD=$DMD MODEL=$MODEL -j$N )
91-
( cd "$dir/../phobos" && make -j$N MODEL=$MODEL )
92-
( cd "$dir" && generated/build HOST_DMD=$DMD MODEL=$MODEL dmd-pgo -j$N --force )
87+
make -C "$dir" -j$N HOST_DMD=$DMD MODEL=$MODEL dmd-pgo
9388
}
9489
9590
setup_ref "${{ steps.refs.outputs.head }}" head

0 commit comments

Comments
 (0)