forked from OSchip/llvm-project
fix trivial typos in comment, NFC
dereferencable -> dereferenceable llvm-svn: 306210
This commit is contained in:
parent
95f24dca98
commit
b300824ee7
|
@ -1252,7 +1252,7 @@ static bool isSafeSelectToSpeculate(SelectInst &SI) {
|
||||||
if (!LI || !LI->isSimple())
|
if (!LI || !LI->isSimple())
|
||||||
return false;
|
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
|
// absolutely (e.g. allocas) or at this point because we can see other
|
||||||
// accesses to it.
|
// accesses to it.
|
||||||
if (!isSafeToLoadUnconditionally(TValue, LI->getAlignment(), DL, LI))
|
if (!isSafeToLoadUnconditionally(TValue, LI->getAlignment(), DL, LI))
|
||||||
|
|
|
@ -926,7 +926,7 @@ while.body:
|
||||||
|
|
||||||
define i32 @test76(i1 %flag, i32* %x) {
|
define i32 @test76(i1 %flag, i32* %x) {
|
||||||
; The load here must not be speculated around the select. One side of the
|
; 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.
|
; load does.
|
||||||
; CHECK-LABEL: @test76(
|
; CHECK-LABEL: @test76(
|
||||||
; CHECK: store i32 0, i32* %x
|
; CHECK: store i32 0, i32* %x
|
||||||
|
@ -943,7 +943,7 @@ declare void @scribble_on_i32(i32*)
|
||||||
|
|
||||||
define i32 @test77(i1 %flag, i32* %x) {
|
define i32 @test77(i1 %flag, i32* %x) {
|
||||||
; The load here must not be speculated around the select. One side of the
|
; 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.
|
; load does.
|
||||||
; CHECK-LABEL: @test77(
|
; CHECK-LABEL: @test77(
|
||||||
; CHECK: %[[A:.*]] = alloca i32, align 1
|
; CHECK: %[[A:.*]] = alloca i32, align 1
|
||||||
|
|
Loading…
Reference in New Issue