comparison src/share/vm/opto/machnode.cpp @ 14437:15120a36272d

8028767: PPC64: (part 121): smaller shared changes needed to build C2 Summary: smaller shared changes required to build the C2 compiler on PPC64. Reviewed-by: kvn
author goetz
date Thu, 21 Nov 2013 19:00:57 -0800
parents 318d0622a6d7
children 4ca6dc0799b6 fc2c88ea11a9
comparison
equal deleted inserted replaced
14436:b0133e4187d3 14437:15120a36272d
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;