summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Kenny Root <kroot@google.com> 2015-09-30 13:09:51 -0700
committer Kenny Root <kroot@google.com> 2015-09-30 13:09:53 -0700
commit00d597a7e192b5d9ccf5a4bcb3783e688af7301f (patch)
tree5acf2ed1968599aaf2e638fa68e24d225b014528 /compiler/optimizing
parentac87001cbbd44b436cc7866f7a41037ca83b17f1 (diff)
Tidy up spelling
To match the directory "compiler/optimizing" change the spelling of comments. Change-Id: I816da4836ce86f4a44ddd2754d8e788d77a27de3
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/constant_folding.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/constant_folding.cc b/compiler/optimizing/constant_folding.cc
index 20ce1105ce..e0aa4ff489 100644
--- a/compiler/optimizing/constant_folding.cc
+++ b/compiler/optimizing/constant_folding.cc
@@ -226,14 +226,14 @@ void InstructionWithAbsorbingInputSimplifier::VisitSub(HSub* instruction) {
// We assume that GVN has run before, so we only perform a pointer
// comparison. If for some reason the values are equal but the pointers are
- // different, we are still correct and only miss an optimisation
+ // different, we are still correct and only miss an optimization
// opportunity.
if (instruction->GetLeft() == instruction->GetRight()) {
// Replace code looking like
// SUB dst, src, src
// with
// CONSTANT 0
- // Note that we cannot optimise `x - x` to `0` for floating-point. It does
+ // Note that we cannot optimize `x - x` to `0` for floating-point. It does
// not work when `x` is an infinity.
instruction->ReplaceWith(GetGraph()->GetConstant(type, 0));
block->RemoveInstruction(instruction);