comparison src/share/vm/c1/c1_LIRGenerator.cpp @ 9060:cc32ccaaf47f

8003310: Enable -Wunused-function when compiling with gcc Summary: Add the -Wunused-function flag and remove a number of unused functions. Reviewed-by: dholmes, coleenp, kvn
author mikael
date Thu, 04 Apr 2013 10:01:26 -0700
parents db9981fd3124
children 8be1318fbe77
comparison
equal deleted inserted replaced
9059:17bf4d428955 9060:cc32ccaaf47f
702 static ciArrayKlass* as_array_klass(ciType* type) { 702 static ciArrayKlass* as_array_klass(ciType* type) {
703 if (type != NULL && type->is_array_klass() && type->is_loaded()) { 703 if (type != NULL && type->is_array_klass() && type->is_loaded()) {
704 return (ciArrayKlass*)type; 704 return (ciArrayKlass*)type;
705 } else { 705 } else {
706 return NULL; 706 return NULL;
707 }
708 }
709
710 static Value maxvalue(IfOp* ifop) {
711 switch (ifop->cond()) {
712 case If::eql: return NULL;
713 case If::neq: return NULL;
714 case If::lss: // x < y ? x : y
715 case If::leq: // x <= y ? x : y
716 if (ifop->x() == ifop->tval() &&
717 ifop->y() == ifop->fval()) return ifop->y();
718 return NULL;
719
720 case If::gtr: // x > y ? y : x
721 case If::geq: // x >= y ? y : x
722 if (ifop->x() == ifop->tval() &&
723 ifop->y() == ifop->fval()) return ifop->y();
724 return NULL;
725
726 } 707 }
727 } 708 }
728 709
729 static ciType* phi_declared_type(Phi* phi) { 710 static ciType* phi_declared_type(Phi* phi) {
730 ciType* t = phi->operand_at(0)->declared_type(); 711 ciType* t = phi->operand_at(0)->declared_type();