summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Ian Pedowitz <ijpedowitz@google.com> 2020-07-22 14:33:00 -0700
committer Ian Pedowitz <ijpedowitz@google.com> 2020-07-24 00:41:56 +0000
commit2d53643ca0e05e7c67894aa75eba899acbb9f287 (patch)
tree39299475c04303312f527bc00355bd9fd7a3fad8 /compiler/optimizing
parentcefebc86af30522bf79d2a89a2bcf96f7f970ecb (diff)
Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Bug: 161850439 Bug: 161336379 Test: m -j checkbuild cts docs tests Change-Id: I32d869c274a5d9a3dac63221e25874fe685d38c4
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/codegen_test.cc2
-rw-r--r--compiler/optimizing/graph_checker.cc2
-rw-r--r--compiler/optimizing/register_allocator_test.cc4
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc
index f4f44a0479..c0441b07ed 100644
--- a/compiler/optimizing/codegen_test.cc
+++ b/compiler/optimizing/codegen_test.cc
@@ -552,7 +552,7 @@ TEST_F(CodegenTest, MaterializedCondition2) {
HIntConstant* cst_rhs = graph->GetIntConstant(rhs[i]);
HLessThan cmp_lt(cst_lhs, cst_rhs);
if_block->AddInstruction(&cmp_lt);
- // We insert a dummy instruction to separate the HIf from the HLessThan
+ // We insert a fake instruction to separate the HIf from the HLessThan
// and force the materialization of the condition.
HMemoryBarrier force_materialization(MemBarrierKind::kAnyAny, 0);
if_block->AddInstruction(&force_materialization);
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc
index ece88a01b4..44de54eccf 100644
--- a/compiler/optimizing/graph_checker.cc
+++ b/compiler/optimizing/graph_checker.cc
@@ -63,7 +63,7 @@ static bool IsExitTryBoundaryIntoExitBlock(HBasicBlock* block) {
size_t GraphChecker::Run(bool pass_change, size_t last_size) {
size_t current_size = GetGraph()->GetReversePostOrder().size();
if (!pass_change) {
- // Nothing changed for certain. Do a quick sanity check on that assertion
+ // Nothing changed for certain. Do a quick check of the validity on that assertion
// for anything other than the first call (when last size was still 0).
if (last_size != 0) {
if (current_size != last_size) {
diff --git a/compiler/optimizing/register_allocator_test.cc b/compiler/optimizing/register_allocator_test.cc
index d1db40be82..f635142e36 100644
--- a/compiler/optimizing/register_allocator_test.cc
+++ b/compiler/optimizing/register_allocator_test.cc
@@ -685,7 +685,7 @@ void RegisterAllocatorTest::ExpectedInRegisterHint(Strategy strategy) {
RegisterAllocator::Create(GetScopedAllocator(), &codegen, liveness, strategy);
register_allocator->AllocateRegisters();
- // Sanity check that in normal conditions, the register should be hinted to 0 (EAX).
+ // Check the validity that in normal conditions, the register should be hinted to 0 (EAX).
ASSERT_EQ(field->GetLiveInterval()->GetRegister(), 0);
}
@@ -753,7 +753,7 @@ void RegisterAllocatorTest::SameAsFirstInputHint(Strategy strategy) {
RegisterAllocator::Create(GetScopedAllocator(), &codegen, liveness, strategy);
register_allocator->AllocateRegisters();
- // Sanity check that in normal conditions, the registers are the same.
+ // Check the validity that in normal conditions, the registers are the same.
ASSERT_EQ(first_sub->GetLiveInterval()->GetRegister(), 1);
ASSERT_EQ(second_sub->GetLiveInterval()->GetRegister(), 1);
}