Skip to content

Commit 52bbd3c

Browse files
committed
Simplify JMH testing
1 parent 6a9a5eb commit 52bbd3c

File tree

2 files changed

+129
-286
lines changed

2 files changed

+129
-286
lines changed

src/hotspot/share/opto/vectornode.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,7 +2345,7 @@ Node* XorVNode::Ideal_XorV_VectorMaskCmp(PhaseGVN* phase, bool can_reshape) {
23452345
}
23462346
if (in1->Opcode() != Op_VectorMaskCmp ||
23472347
in1->outcnt() != 1 ||
2348-
!(in1->as_VectorMaskCmp())->predicate_can_be_negated() ||
2348+
!in1->as_VectorMaskCmp()->predicate_can_be_negated() ||
23492349
!VectorNode::is_all_ones_vector(in2)) {
23502350
return nullptr;
23512351
}
@@ -2376,10 +2376,10 @@ Node* XorVNode::Ideal(PhaseGVN* phase, bool can_reshape) {
23762376
}
23772377

23782378
Node* res = Ideal_XorV_VectorMaskCmp(phase, can_reshape);
2379-
if (res == nullptr) {
2380-
res = VectorNode::Ideal(phase, can_reshape);
2379+
if (res != nullptr) {
2380+
return res;
23812381
}
2382-
return res;
2382+
return VectorNode::Ideal(phase, can_reshape);
23832383
}
23842384

23852385
Node* VectorBlendNode::Identity(PhaseGVN* phase) {

0 commit comments

Comments
 (0)