Commit 7c8be15b authored by Volker Dobler's avatar Volker Dobler Committed by Brad Fitzpatrick

cmd/gc: mark panicslice as unlikely

No measurable impact on performance on amd64

R=golang-dev, khr, bradfitz
CC=golang-dev
https://golang.org/cl/13096045
parent d5c806d5
......@@ -2729,6 +2729,7 @@ sliceany(Node* n, NodeList **init)
if(chk0 != N || chk1 != N || chk2 != N) {
chk = nod(OIF, N, N);
chk->nbody = list1(mkcall("panicslice", T, init));
chk->likely = -1;
if(chk0 != N)
chk->ntest = chk0;
if(chk1 != N) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment