Mercurial > hg > truffle
comparison src/share/vm/opto/loopTransform.cpp @ 605:98cb887364d3
6810672: Comment typos
Summary: I have collected some typos I have found while looking at the code.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Fri, 27 Feb 2009 13:27:09 -0800 |
parents | a1980da045cc |
children | 273b2358ef1a |
comparison
equal
deleted
inserted
replaced
604:ec59443af135 | 605:98cb887364d3 |
---|---|
117 head->set_profile_trip_cnt(trip_cnt); | 117 head->set_profile_trip_cnt(trip_cnt); |
118 } | 118 } |
119 | 119 |
120 //---------------------is_invariant_addition----------------------------- | 120 //---------------------is_invariant_addition----------------------------- |
121 // Return nonzero index of invariant operand for an Add or Sub | 121 // Return nonzero index of invariant operand for an Add or Sub |
122 // of (nonconstant) invariant and variant values. Helper for reassoicate_invariants. | 122 // of (nonconstant) invariant and variant values. Helper for reassociate_invariants. |
123 int IdealLoopTree::is_invariant_addition(Node* n, PhaseIdealLoop *phase) { | 123 int IdealLoopTree::is_invariant_addition(Node* n, PhaseIdealLoop *phase) { |
124 int op = n->Opcode(); | 124 int op = n->Opcode(); |
125 if (op == Op_AddI || op == Op_SubI) { | 125 if (op == Op_AddI || op == Op_SubI) { |
126 bool in1_invar = this->is_invariant(n->in(1)); | 126 bool in1_invar = this->is_invariant(n->in(1)); |
127 bool in2_invar = this->is_invariant(n->in(2)); | 127 bool in2_invar = this->is_invariant(n->in(2)); |
518 } | 518 } |
519 | 519 |
520 //------------------------------policy_align----------------------------------- | 520 //------------------------------policy_align----------------------------------- |
521 // Return TRUE or FALSE if the loop should be cache-line aligned. Gather the | 521 // Return TRUE or FALSE if the loop should be cache-line aligned. Gather the |
522 // expression that does the alignment. Note that only one array base can be | 522 // expression that does the alignment. Note that only one array base can be |
523 // aligned in a loop (unless the VM guarentees mutual alignment). Note that | 523 // aligned in a loop (unless the VM guarantees mutual alignment). Note that |
524 // if we vectorize short memory ops into longer memory ops, we may want to | 524 // if we vectorize short memory ops into longer memory ops, we may want to |
525 // increase alignment. | 525 // increase alignment. |
526 bool IdealLoopTree::policy_align( PhaseIdealLoop *phase ) const { | 526 bool IdealLoopTree::policy_align( PhaseIdealLoop *phase ) const { |
527 return false; | 527 return false; |
528 } | 528 } |