From ce0234b47d5c40e74dac368396e92cdec5cc2de7 Mon Sep 17 00:00:00 2001 From: Roman Kennke Date: Fri, 26 Nov 2021 14:54:09 +0000 Subject: [PATCH] 8277860: PPC: Remove duplicate info != NULL check Reviewed-by: chagedorn, mdoerr --- src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp b/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp index 9492dadff4fde..23e03cb36e361 100644 --- a/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp +++ b/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp @@ -2733,12 +2733,10 @@ void LIR_Assembler::emit_load_klass(LIR_OpLoadKlass* op) { CodeEmitInfo* info = op->info(); if (info != NULL) { - if (info != NULL) { - if (!os::zero_page_read_protected() || !ImplicitNullChecks) { - explicit_null_check(obj, info); - } else { - add_debug_info_for_null_check_here(info); - } + if (!os::zero_page_read_protected() || !ImplicitNullChecks) { + explicit_null_check(obj, info); + } else { + add_debug_info_for_null_check_here(info); } }