8048703: ReplacedNodes dumps it's content to tty
Reviewed-by: roland, iveresov, drchase
This commit is contained in:
parent
c24909197f
commit
db4aa1aa54
@ -185,11 +185,11 @@ void ReplacedNodes::apply(Compile* C, Node* ctl) {
|
|||||||
|
|
||||||
void ReplacedNodes::dump(outputStream *st) const {
|
void ReplacedNodes::dump(outputStream *st) const {
|
||||||
if (!is_empty()) {
|
if (!is_empty()) {
|
||||||
tty->print("replaced nodes: ");
|
st->print("replaced nodes: ");
|
||||||
for (int i = 0; i < _replaced_nodes->length(); i++) {
|
for (int i = 0; i < _replaced_nodes->length(); i++) {
|
||||||
tty->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx);
|
st->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx);
|
||||||
if (i < _replaced_nodes->length()-1) {
|
if (i < _replaced_nodes->length()-1) {
|
||||||
tty->print(",");
|
st->print(",");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user