From a9a306d4c1abd43efe75987f174f64fe9e385874 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Thu, 8 Oct 2015 16:48:31 +0100 Subject: [PATCH] Add a clarifying comment on HLoadClass::InstructionDataEquals. Change-Id: I4c298a453f03cde9d32fe43aff86886835af16fe --- compiler/optimizing/nodes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 615012eb3..c126b59bc 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -4510,6 +4510,9 @@ class HLoadClass : public HExpression<1> { bool CanBeMoved() const OVERRIDE { return true; } bool InstructionDataEquals(HInstruction* other) const OVERRIDE { + // Note that we don't need to test for generate_clinit_check_. + // Whether or not we need to generate the clinit check is processed in + // prepare_for_register_allocator based on existing HInvokes and HClinitChecks. return other->AsLoadClass()->type_index_ == type_index_ && other->AsLoadClass()->needs_access_check_ == needs_access_check_; } -- 2.11.0