Skip to content
Permalink
Browse files

8236181: C2: Remove useless step_over_gc_barrier() in int->bool conve…

…rsion

Reviewed-by: thartmann, roland
  • Loading branch information
rkennke committed Jan 7, 2020
1 parent 773b7b6 commit 49b1cc8ee65bf218507fc4fa3d245bc2fbca4dbb
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/hotspot/share/opto/cfgnode.cpp
@@ -1449,10 +1449,7 @@ static Node *is_x2logic( PhaseGVN *phase, PhiNode *phi, int true_path ) {
} else return NULL;

// Build int->bool conversion
Node *in1 = cmp->in(1);
BarrierSetC2* bs = BarrierSet::barrier_set()->barrier_set_c2();
in1 = bs->step_over_gc_barrier(in1);
Node *n = new Conv2BNode(in1);
Node *n = new Conv2BNode(cmp->in(1));
if( flipped )
n = new XorINode( phase->transform(n), phase->intcon(1) );

0 comments on commit 49b1cc8

Please sign in to comment.