equal
deleted
inserted
replaced
395 skipped += num_edges; |
395 skipped += num_edges; |
396 } |
396 } |
397 return skipped; |
397 return skipped; |
398 } |
398 } |
399 |
399 |
|
400 int MachNode::operand_index(const MachOper *oper) const { |
|
401 uint skipped = oper_input_base(); // Sum of leaves skipped so far |
|
402 uint opcnt; |
|
403 for (opcnt = 1; opcnt < num_opnds(); opcnt++) { |
|
404 if (_opnds[opcnt] == oper) break; |
|
405 uint num_edges = _opnds[opcnt]->num_edges(); // leaves for operand |
|
406 skipped += num_edges; |
|
407 } |
|
408 if (_opnds[opcnt] != oper) return -1; |
|
409 return skipped; |
|
410 } |
400 |
411 |
401 //------------------------------peephole--------------------------------------- |
412 //------------------------------peephole--------------------------------------- |
402 // Apply peephole rule(s) to this instruction |
413 // Apply peephole rule(s) to this instruction |
403 MachNode *MachNode::peephole( Block *block, int block_index, PhaseRegAlloc *ra_, int &deleted, Compile* C ) { |
414 MachNode *MachNode::peephole( Block *block, int block_index, PhaseRegAlloc *ra_, int &deleted, Compile* C ) { |
404 return NULL; |
415 return NULL; |