From a34d90bb0cc9d4e304c6110d93a00fa8b78811a4 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Fri, 7 Jul 2023 13:22:52 +0000 Subject: [PATCH] 8277860: PPC: Remove duplicate info != NULL check Backport-of: ce0234b47d5c40e74dac368396e92cdec5cc2de7 --- 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 844c953e543..10ecd0eee3a 100644 --- a/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp +++ b/src/hotspot/cpu/ppc/c1_LIRAssembler_ppc.cpp @@ -2734,12 +2734,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); } }