src/hotspot/share/c1/c1_IR.cpp
changeset 51078 fc6cfe40e32a
parent 47216 71c04702a3d5
child 51333 f6641fcf7b7e
child 51352 f646ca47e561
equal deleted inserted replaced
51077:9baa91bc7567 51078:fc6cfe40e32a
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  1384   Instruction* last = NULL;
  1384   Instruction* last = NULL;
  1385   for (Instruction* n = block; n != NULL;) {
  1385   for (Instruction* n = block; n != NULL;) {
  1386     n->values_do(this);
  1386     n->values_do(this);
  1387     // need to remove this instruction from the instruction stream
  1387     // need to remove this instruction from the instruction stream
  1388     if (n->subst() != n) {
  1388     if (n->subst() != n) {
  1389       assert(last != NULL, "must have last");
  1389       guarantee(last != NULL, "must have last");
  1390       last->set_next(n->next());
  1390       last->set_next(n->next());
  1391     } else {
  1391     } else {
  1392       last = n;
  1392       last = n;
  1393     }
  1393     }
  1394     n = last->next();
  1394     n = last->next();