mirror of https://github.com/golang/go.git
Revert "cmd/compile: build compiler with PGO"
This reverts CL 495596. Reason for revert: duplicate symbol failures in x/tools and random PPC crashes. Change-Id: I57305f8e72ee1567dc5a6a829c2d70fb5719028a Reviewed-on: https://go-review.googlesource.com/c/go/+/496185 Reviewed-by: Bryan Mills <bcmills@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
88f89d87c4
commit
6ffd135256
Binary file not shown.
|
|
@ -1,21 +0,0 @@
|
|||
# Copyright 2023 The Go Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
# This script collects a CPU profile of the compiler
|
||||
# for building all targets in std and cmd, and puts
|
||||
# the profile at cmd/compile/default.pgo.
|
||||
|
||||
dir=$(mktemp -d)
|
||||
cd $dir
|
||||
seed=$(date)
|
||||
|
||||
for p in $(go list std cmd); do
|
||||
h=$(echo $seed $p | md5sum | cut -d ' ' -f 1)
|
||||
echo $p $h
|
||||
go build -o /dev/null -gcflags=-cpuprofile=$PWD/prof.$h $p
|
||||
done
|
||||
|
||||
go tool pprof -proto prof.* > $(go env GOROOT)/src/cmd/compile/default.pgo
|
||||
|
||||
rm -r $dir
|
||||
|
|
@ -100,10 +100,6 @@ var ignorePrefixes = []string{
|
|||
var ignoreSuffixes = []string{
|
||||
"_test.s",
|
||||
"_test.go",
|
||||
// Skip PGO profile. No need to build toolchain1 compiler
|
||||
// with PGO. And as it is not a text file the import path
|
||||
// rewrite will break it.
|
||||
".pgo",
|
||||
}
|
||||
|
||||
var tryDirs = []string{
|
||||
|
|
|
|||
Loading…
Reference in New Issue