From: Hiroshi Inoue Date: Sat, 24 Jun 2017 15:43:33 +0000 (+0000) Subject: fix trivial typos in comment, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa970efe79c2c7798243eb07c8d6992fe0bec476;p=llvm fix trivial typos in comment, NFC dereferencable -> dereferenceable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306210 cdac9f57-aa62-4fd3-8940-286f4534e8a0 --- diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp index f32d2d58229..80fbbeb6829 100644 --- a/lib/Transforms/Scalar/SROA.cpp +++ b/lib/Transforms/Scalar/SROA.cpp @@ -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)) diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll index c26380eaa71..0f94235982b 100644 --- a/test/Transforms/InstCombine/select.ll +++ b/test/Transforms/InstCombine/select.ll @@ -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