From f09371ba05dbb0ee3befbb0aced478291d2ea467 Mon Sep 17 00:00:00 2001 From: Dhruv Chopra Date: Wed, 19 Aug 2020 16:25:44 -0400 Subject: [PATCH] Deprecate uses of getSupportsArch in Z codegen Signed-off-by: Dhruv Chopra --- compiler/z/codegen/OMRPeephole.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/z/codegen/OMRPeephole.cpp b/compiler/z/codegen/OMRPeephole.cpp index 0a13e29adfd..07121465cd4 100644 --- a/compiler/z/codegen/OMRPeephole.cpp +++ b/compiler/z/codegen/OMRPeephole.cpp @@ -421,7 +421,7 @@ OMR::Z::Peephole::tryLoadStoreReduction(TR::InstOpCode::Mnemonic storeOpCode, ui bool OMR::Z::Peephole::tryToFoldLoadRegisterIntoSubsequentInstruction() { - if (!self()->comp()->target().cpu.getSupportsArch(TR::CPU::z196)) + if (!self()->comp()->target().cpu.isAtLeast(OMR_PROCESSOR_S390_Z196)) { return false; } @@ -1045,7 +1045,7 @@ bool OMR::Z::Peephole::tryToReduceCRJLHIToLOCHI(TR::InstOpCode::Mnemonic compareMnemonic) { // This optimization relies on hardware instructions introduced in z13 - if (!TR::Compiler->target.cpu.getSupportsArch(TR::CPU::z13)) + if (!self()->comp()->target().cpu.isAtLeast(OMR_PROCESSOR_S390_Z13)) return false; TR::S390RIEInstruction* branchInst = static_cast(cursor); @@ -1196,7 +1196,7 @@ bool OMR::Z::Peephole::tryToReduceLToLZRF(TR::InstOpCode::Mnemonic loadAndZeroRightMostByteMnemonic) { // This optimization relies on hardware instructions introduced in z13 - if (!TR::Compiler->target.cpu.getSupportsArch(TR::CPU::z13)) + if (!self()->comp()->target().cpu.isAtLeast(OMR_PROCESSOR_S390_Z13)) return false; if (cursor->getNext()->getOpCodeValue() == TR::InstOpCode::NILL)