mirror of
https://github.com/golang/go
synced 2024-11-12 09:30:25 -07:00
5g, 8g: dead code (already removed from 6g)
R=ken2 CC=golang-dev https://golang.org/cl/1983041
This commit is contained in:
parent
6610d79eda
commit
14e0df34fd
@ -733,7 +733,7 @@ getargs(NodeList *nn, Node *reg, int n)
|
||||
void
|
||||
cmpandthrow(Node *nl, Node *nr)
|
||||
{
|
||||
vlong cl, cr;
|
||||
vlong cl;
|
||||
Prog *p1;
|
||||
int op;
|
||||
Node *c, n1, n2;
|
||||
@ -743,17 +743,8 @@ cmpandthrow(Node *nl, Node *nr)
|
||||
cl = mpgetfix(nl->val.u.xval);
|
||||
if(cl == 0)
|
||||
return;
|
||||
if(smallintconst(nr)) {
|
||||
cr = mpgetfix(nr->val.u.xval);
|
||||
if(cl > cr) {
|
||||
if(throwpc == nil) {
|
||||
throwpc = pc;
|
||||
ginscall(panicslice, 0);
|
||||
} else
|
||||
patch(gbranch(AB, T), throwpc);
|
||||
}
|
||||
if(smallintconst(nr))
|
||||
return;
|
||||
}
|
||||
|
||||
// put the constant on the right
|
||||
op = brrev(op);
|
||||
|
@ -854,7 +854,7 @@ getargs(NodeList *nn, Node *reg, int n)
|
||||
void
|
||||
cmpandthrow(Node *nl, Node *nr)
|
||||
{
|
||||
vlong cl, cr;
|
||||
vlong cl;
|
||||
Prog *p1;
|
||||
int op;
|
||||
Node *c;
|
||||
@ -864,18 +864,8 @@ cmpandthrow(Node *nl, Node *nr)
|
||||
cl = mpgetfix(nl->val.u.xval);
|
||||
if(cl == 0)
|
||||
return;
|
||||
if(smallintconst(nr)) {
|
||||
cr = mpgetfix(nr->val.u.xval);
|
||||
if(cl > cr) {
|
||||
if(throwpc == nil) {
|
||||
throwpc = pc;
|
||||
ginscall(panicslice, 0);
|
||||
} else
|
||||
patch(gbranch(AJMP, T), throwpc);
|
||||
}
|
||||
if(smallintconst(nr))
|
||||
return;
|
||||
}
|
||||
|
||||
// put the constant on the right
|
||||
op = brrev(op);
|
||||
c = nl;
|
||||
|
Loading…
Reference in New Issue
Block a user