changeset 59198:6b0fed2fd535

8244510: Shenandoah: invert SHC2Support::is_in_cset condition Reviewed-by: rkennke, roland
author shade
date Thu, 07 May 2020 12:48:21 +0200
parents bc37c439d717
children 2dbdb2536d74
files src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Wed May 06 11:40:27 2020 +0200
+++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Thu May 07 12:48:21 2020 +0200
@@ -931,16 +931,16 @@
                                        DEBUG_ONLY(phase->C->get_adr_type(Compile::AliasIdxRaw)) NOT_DEBUG(NULL),
                                        TypeInt::BYTE, MemNode::unordered);
   Node* cset_cmp       = new CmpINode(cset_load, igvn.zerocon(T_INT));
-  Node* cset_bool      = new BoolNode(cset_cmp, BoolTest::eq);
+  Node* cset_bool      = new BoolNode(cset_cmp, BoolTest::ne);
 
   IfNode* cset_iff     = new IfNode(old_ctrl, cset_bool, PROB_UNLIKELY(0.999), COUNT_UNKNOWN);
-  not_cset_ctrl        = new IfTrueNode(cset_iff);
-  ctrl                 = new IfFalseNode(cset_iff);
+  ctrl                 = new IfTrueNode(cset_iff);
+  not_cset_ctrl        = new IfFalseNode(cset_iff);
 
   IdealLoopTree *loop = phase->get_loop(old_ctrl);
   phase->register_control(cset_iff,      loop, old_ctrl);
+  phase->register_control(ctrl,          loop, cset_iff);
   phase->register_control(not_cset_ctrl, loop, cset_iff);
-  phase->register_control(ctrl,          loop, cset_iff);
 
   phase->set_ctrl(cset_addr, phase->C->root());