-
Notifications
You must be signed in to change notification settings - Fork 18.1k
cmd/compile: -gcflags="-m=2 -d=ssa/check_bce/debug=1" sometimes results in no output #73892
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
Comments
Ah, interestingly |
This is very strange.. but after running the variant above, the original variant started working.. |
-m=2 -d=ssa/check_bce/debug=1
CC @golang/compiler |
-m=2 -d=ssa/check_bce/debug=1
In triage we think this might be a caching issue. Something is getting cached and the output isn't getting cached and reprinted... or something. |
It would make sense. If I can find a reliable way to reproduce, I'll update this issue. |
Could you try if |
I tried that but after it started working fine already... I couldn't get it to fail anymore, with or without cleaning the cache. |
The last paragraph of https://go-review.googlesource.com/c/go/+/128903, which fixed a bug like this a while ago, says:
I can use this to reproduce the behavior you're seeing. I'm not sure if this was the cause of what you saw, but maybe?
In particular, you have to clean the cache but don't delete the binary produced in step 2. Note that this happens just as well with |
Go version
go version go1.24.3 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
In the Pebble (github.com/cockroachdb/pebble) master branch:
go build -gcflags="-m=2 -d=ssa/check_bce/debug=1" ./sstable/colblk
Note that we use this output (through github.com/jordanlewis/gcassert) for a linter that verifies that certain known hot paths are inlined.
What did you see happen?
The command outputs nothing.
What did you expect to see?
In go1.24.2 or older, I get a ton of information: https://gist.github.com/RaduBerinde/87145c7327fdf035de9a0008f4d841c5
The text was updated successfully, but these errors were encountered: