8223137: Rename predicate 'do_unroll_only()' to 'is_unroll_only()'
Reviewed-by: vlivanov
This commit is contained in:
parent
34e49a24c0
commit
fcbca82247
src/hotspot/share/opto
@ -352,10 +352,11 @@ bool IdealLoopTree::policy_peeling( PhaseIdealLoop *phase ) const {
|
||||
}
|
||||
|
||||
// check for vectorized loops, any peeling done was already applied
|
||||
if (_head->is_CountedLoop() && _head->as_CountedLoop()->do_unroll_only()) return false;
|
||||
|
||||
if (_head->is_CountedLoop() && _head->as_CountedLoop()->trip_count() == 1) {
|
||||
return false;
|
||||
if (_head->is_CountedLoop()) {
|
||||
CountedLoopNode* cl = _head->as_CountedLoop();
|
||||
if (cl->is_unroll_only() || cl->trip_count() == 1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
while( test != _head ) { // Scan till run off top of loop
|
||||
@ -873,7 +874,7 @@ bool IdealLoopTree::policy_unroll(PhaseIdealLoop *phase) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cl->do_unroll_only()) {
|
||||
if (cl->is_unroll_only()) {
|
||||
if (TraceSuperWordLoopUnrollAnalysis) {
|
||||
tty->print_cr("policy_unroll passed vector loop(vlen=%d,factor = %d)\n", slp_max_unroll_factor, future_unroll_ct);
|
||||
}
|
||||
@ -935,7 +936,7 @@ bool IdealLoopTree::policy_range_check( PhaseIdealLoop *phase ) const {
|
||||
Node *trip_counter = cl->phi();
|
||||
|
||||
// check for vectorized loops, some opts are no longer needed
|
||||
if (cl->do_unroll_only()) return false;
|
||||
if (cl->is_unroll_only()) return false;
|
||||
|
||||
// Check loop body for tests of trip-counter plus loop-invariant vs
|
||||
// loop-invariant.
|
||||
@ -989,7 +990,9 @@ bool IdealLoopTree::policy_range_check( PhaseIdealLoop *phase ) const {
|
||||
// for unrolling loops with NO array accesses.
|
||||
bool IdealLoopTree::policy_peel_only( PhaseIdealLoop *phase ) const {
|
||||
// check for vectorized loops, any peeling done was already applied
|
||||
if (_head->is_CountedLoop() && _head->as_CountedLoop()->do_unroll_only()) return false;
|
||||
if (_head->is_CountedLoop() && _head->as_CountedLoop()->is_unroll_only()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for( uint i = 0; i < _body.size(); i++ )
|
||||
if( _body[i]->is_Mem() )
|
||||
|
@ -63,7 +63,7 @@ bool IdealLoopTree::policy_unswitching( PhaseIdealLoop *phase ) const {
|
||||
}
|
||||
|
||||
// check for vectorized loops, any unswitching was already applied
|
||||
if (_head->is_CountedLoop() && _head->as_CountedLoop()->do_unroll_only()) {
|
||||
if (_head->is_CountedLoop() && _head->as_CountedLoop()->is_unroll_only()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -2949,7 +2949,7 @@ void PhaseIdealLoop::build_and_optimize(LoopOptsMode mode) {
|
||||
if (!is_counted || !lpt->is_inner()) continue;
|
||||
|
||||
// check for vectorized loops, any reassociation of invariants was already done
|
||||
if (is_counted && lpt->_head->as_CountedLoop()->do_unroll_only()) continue;
|
||||
if (is_counted && lpt->_head->as_CountedLoop()->is_unroll_only()) continue;
|
||||
|
||||
lpt->reassociate_invariants(this);
|
||||
|
||||
|
@ -264,7 +264,7 @@ public:
|
||||
bool is_reduction_loop() const { return (_loop_flags&HasReductions) == HasReductions; }
|
||||
bool was_slp_analyzed () const { return (_loop_flags&WasSlpAnalyzed) == WasSlpAnalyzed; }
|
||||
bool has_passed_slp () const { return (_loop_flags&PassedSlpAnalysis) == PassedSlpAnalysis; }
|
||||
bool do_unroll_only () const { return (_loop_flags&DoUnrollOnly) == DoUnrollOnly; }
|
||||
bool is_unroll_only () const { return (_loop_flags&DoUnrollOnly) == DoUnrollOnly; }
|
||||
bool is_main_no_pre_loop() const { return _loop_flags & MainHasNoPreLoop; }
|
||||
bool has_atomic_post_loop () const { return (_loop_flags & HasAtomicPostLoop) == HasAtomicPostLoop; }
|
||||
void set_main_no_pre_loop() { _loop_flags |= MainHasNoPreLoop; }
|
||||
|
@ -145,7 +145,7 @@ void SuperWord::transform_loop(IdealLoopTree* lpt, bool do_optimization) {
|
||||
// Skip any loops already optimized by slp
|
||||
if (cl->is_vectorized_loop()) return;
|
||||
|
||||
if (cl->do_unroll_only()) return;
|
||||
if (cl->is_unroll_only()) return;
|
||||
|
||||
if (cl->is_main_loop()) {
|
||||
// Check for pre-loop ending with CountedLoopEnd(Bool(Cmp(x,Opaque1(limit))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user