]> granicus.if.org Git - llvm/commitdiff
fix trivial typos in comment, NFC
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Sat, 24 Jun 2017 15:43:33 +0000 (15:43 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Sat, 24 Jun 2017 15:43:33 +0000 (15:43 +0000)
dereferencable -> dereferenceable

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306210 cdac9f57-aa62-4fd3-8940-286f4534e8a0

lib/Transforms/Scalar/SROA.cpp
test/Transforms/InstCombine/select.ll

index f32d2d58229cc13fae617f14ed69a8c816b9bda9..80fbbeb6829bb1c72587352a741df5ed965f23fe 100644 (file)
@@ -1252,7 +1252,7 @@ static bool isSafeSelectToSpeculate(SelectInst &SI) {
     if (!LI || !LI->isSimple())
       return false;
 
-    // Both operands to the select need to be dereferencable, either
+    // Both operands to the select need to be dereferenceable, either
     // absolutely (e.g. allocas) or at this point because we can see other
     // accesses to it.
     if (!isSafeToLoadUnconditionally(TValue, LI->getAlignment(), DL, LI))
index c26380eaa71be3216b60b09948c8c7bd3849d9f1..0f94235982b99b610cec906811cf03a7bf448de1 100644 (file)
@@ -926,7 +926,7 @@ while.body:
 
 define i32 @test76(i1 %flag, i32* %x) {
 ; The load here must not be speculated around the select. One side of the
-; select is trivially dereferencable but may have a lower alignment than the
+; select is trivially dereferenceable but may have a lower alignment than the
 ; load does.
 ; CHECK-LABEL: @test76(
 ; CHECK: store i32 0, i32* %x
@@ -943,7 +943,7 @@ declare void @scribble_on_i32(i32*)
 
 define i32 @test77(i1 %flag, i32* %x) {
 ; The load here must not be speculated around the select. One side of the
-; select is trivially dereferencable but may have a lower alignment than the
+; select is trivially dereferenceable but may have a lower alignment than the
 ; load does.
 ; CHECK-LABEL: @test77(
 ; CHECK: %[[A:.*]] = alloca i32, align 1