Skip to content

Commit 9674039

Browse files
authored
Merge pull request #21795 from Spencer-Comin/compress-expand-knobs-dev
Use cg flags to check compress/expand support
2 parents 9eabebb + e08c55c commit 9674039

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/compiler/optimizer/J9RecognizedCallTransformer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,13 +1706,13 @@ bool J9::RecognizedCallTransformer::isInlineable(TR::TreeTop* treetop)
17061706
case TR::java_lang_Long_rotateRight:
17071707
return comp()->target().cpu.getSupportsHardware64bitRotate();
17081708
case TR::java_lang_Integer_compress:
1709-
return comp()->target().cpu.getSupportsHardware32bitCompress();
1709+
return cg()->getSupports32BitCompress();
17101710
case TR::java_lang_Long_compress:
1711-
return comp()->target().cpu.getSupportsHardware64bitCompress();
1711+
return cg()->getSupports64BitCompress();
17121712
case TR::java_lang_Integer_expand:
1713-
return comp()->target().cpu.getSupportsHardware32bitExpand();
1713+
return cg()->getSupports32BitExpand();
17141714
case TR::java_lang_Long_expand:
1715-
return comp()->target().cpu.getSupportsHardware64bitExpand();
1715+
return cg()->getSupports64BitExpand();
17161716
case TR::java_lang_Math_abs_I:
17171717
case TR::java_lang_Math_abs_L:
17181718
return cg()->supportsIntAbs();

0 commit comments

Comments
 (0)