From d9ee89c8d389d07e3e5817b2d85b19349029a92f Mon Sep 17 00:00:00 2001 From: Filip Jeremic Date: Thu, 29 Nov 2018 13:19:27 -0500 Subject: [PATCH] Remove last bit of CS checks in `tmPoll` In #3763 we disabled the use of TM CLQ optimizations under concurrent scavenge (CS). Hence checking for whether it is enabled within the evaluators for `tmPoll` will always return false, so the query can be folded away. Signed-off-by: Filip Jeremic --- runtime/compiler/z/codegen/J9TreeEvaluator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/compiler/z/codegen/J9TreeEvaluator.cpp b/runtime/compiler/z/codegen/J9TreeEvaluator.cpp index 2f4c8a48288..521bf36e312 100644 --- a/runtime/compiler/z/codegen/J9TreeEvaluator.cpp +++ b/runtime/compiler/z/codegen/J9TreeEvaluator.cpp @@ -11457,7 +11457,7 @@ inlineConcurrentLinkedQueueTMPoll( if (useNonConstrainedTM || disableTMPoll) cursor = generateS390LabelInstruction(cg, TR::InstOpCode::LABEL, node, failLabel, deps); - if (!TR::Compiler->om.shouldGenerateReadBarriersForFieldLoads() && usesCompressedrefs) + if (usesCompressedrefs) { generateRRInstruction(cg, TR::InstOpCode::LLGFR, node, rQ, rQ);