forked from OSchip/llvm-project
Revert "[Attributor] Re-enable a run line in noalias.ll"
The underlying issue is still there, just hides on most systems, even
some Windows builds :(
See:
http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/25479/steps/test-check-all/logs/FAIL%3A%20LLVM%3A%3Anoalias.ll
This reverts commit 2600c9e2ef
.
This commit is contained in:
parent
1301febe71
commit
a2cb544801
|
@ -1,7 +1,8 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-attributes
|
||||
; RUN: opt -attributor -enable-new-pm=0 -attributor-manifest-internal -attributor-max-iterations-verify -attributor-annotate-decl-cs -attributor-max-iterations=7 -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_CGSCC_NPM,NOT_CGSCC_OPM,NOT_TUNIT_NPM,IS__TUNIT____,IS________OPM,IS__TUNIT_OPM
|
||||
; RUN: opt -aa-pipeline=basic-aa -passes=attributor -attributor-manifest-internal -attributor-max-iterations-verify -attributor-annotate-decl-cs -attributor-max-iterations=7 -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_CGSCC_OPM,NOT_CGSCC_NPM,NOT_TUNIT_OPM,IS__TUNIT____,IS________NPM,IS__TUNIT_NPM
|
||||
; RUN: opt -attributor-cgscc -enable-new-pm=0 -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_TUNIT_NPM,NOT_TUNIT_OPM,NOT_CGSCC_NPM,IS__CGSCC____,IS________OPM,IS__CGSCC_OPM
|
||||
; TODO: The old pass manager cgscc run is disabled as it causes a crash on windows which is under investigation: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/25479/steps/test-check-all/logs/FAIL%3A%20LLVM%3A%3Anoalias.ll
|
||||
; opt -attributor-cgscc -enable-new-pm=0 -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_TUNIT_NPM,NOT_TUNIT_OPM,NOT_CGSCC_NPM,IS__CGSCC____,IS________OPM,IS__CGSCC_OPM
|
||||
; RUN: opt -aa-pipeline=basic-aa -passes=attributor-cgscc -attributor-manifest-internal -attributor-annotate-decl-cs -S < %s | FileCheck %s --check-prefixes=CHECK,NOT_TUNIT_NPM,NOT_TUNIT_OPM,NOT_CGSCC_OPM,IS__CGSCC____,IS________NPM,IS__CGSCC_NPM
|
||||
|
||||
; TEST 1 - negative.
|
||||
|
@ -41,10 +42,10 @@ define i8* @return_noalias(){
|
|||
}
|
||||
|
||||
define void @nocapture(i8* %a){
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@nocapture
|
||||
; IS__TUNIT____-SAME: (i8* nocapture nofree readnone [[A:%.*]]) [[ATTR0:#.*]] {
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@nocapture
|
||||
; NOT_CGSCC_NPM-SAME: (i8* nocapture nofree readnone [[A:%.*]]) [[ATTR0:#.*]] {
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@nocapture
|
||||
|
@ -144,10 +145,10 @@ declare i8* @baz(...) nounwind uwtable
|
|||
|
||||
; Returning global pointer. Should not be noalias.
|
||||
define i8** @getter() {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@getter
|
||||
; IS__TUNIT____-SAME: () [[ATTR0]] {
|
||||
; IS__TUNIT____-NEXT: ret i8** @G
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@getter
|
||||
; NOT_CGSCC_NPM-SAME: () [[ATTR0]] {
|
||||
; NOT_CGSCC_NPM-NEXT: ret i8** @G
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@getter
|
||||
|
@ -159,10 +160,10 @@ define i8** @getter() {
|
|||
|
||||
; Returning global pointer. Should not be noalias.
|
||||
define i8** @calle1(){
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@calle1
|
||||
; IS__TUNIT____-SAME: () [[ATTR0]] {
|
||||
; IS__TUNIT____-NEXT: ret i8** @G
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@calle1
|
||||
; NOT_CGSCC_NPM-SAME: () [[ATTR0]] {
|
||||
; NOT_CGSCC_NPM-NEXT: ret i8** @G
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@calle1
|
||||
|
@ -409,7 +410,6 @@ define void @test12_3(){
|
|||
}
|
||||
|
||||
define void @test12_4(){
|
||||
;
|
||||
; IS________OPM-LABEL: define {{[^@]+}}@test12_4() {
|
||||
; IS________OPM-NEXT: [[A:%.*]] = tail call noalias i8* @malloc(i64 noundef 4)
|
||||
; IS________OPM-NEXT: [[B:%.*]] = tail call noalias i8* @malloc(i64 noundef 4)
|
||||
|
@ -422,17 +422,17 @@ define void @test12_4(){
|
|||
; IS________OPM-NEXT: tail call void @two_args(i8* nocapture [[A_0]], i8* nocapture [[B_0]])
|
||||
; IS________OPM-NEXT: ret void
|
||||
;
|
||||
; IS________NPM-LABEL: define {{[^@]+}}@test12_4() {
|
||||
; IS________NPM-NEXT: [[A:%.*]] = tail call noalias i8* @malloc(i64 noundef 4)
|
||||
; IS________NPM-NEXT: [[B:%.*]] = tail call noalias i8* @malloc(i64 noundef 4)
|
||||
; IS________NPM-NEXT: [[A_0:%.*]] = getelementptr i8, i8* [[A]], i64 0
|
||||
; IS________NPM-NEXT: [[A_1:%.*]] = getelementptr i8, i8* [[A]], i64 1
|
||||
; IS________NPM-NEXT: [[B_0:%.*]] = getelementptr i8, i8* [[B]], i64 0
|
||||
; IS________NPM-NEXT: tail call void @two_args(i8* noalias nocapture [[A]], i8* noalias nocapture [[B]])
|
||||
; IS________NPM-NEXT: tail call void @two_args(i8* nocapture [[A]], i8* nocapture [[A_0]])
|
||||
; IS________NPM-NEXT: tail call void @two_args(i8* nocapture [[A]], i8* nocapture [[A_1]])
|
||||
; IS________NPM-NEXT: tail call void @two_args(i8* nocapture [[A_0]], i8* nocapture [[B_0]])
|
||||
; IS________NPM-NEXT: ret void
|
||||
; NOT_TUNIT_OPM-LABEL: define {{[^@]+}}@test12_4() {
|
||||
; NOT_TUNIT_OPM-NEXT: [[A:%.*]] = tail call noalias i8* @malloc(i64 noundef 4)
|
||||
; NOT_TUNIT_OPM-NEXT: [[B:%.*]] = tail call noalias i8* @malloc(i64 noundef 4)
|
||||
; NOT_TUNIT_OPM-NEXT: [[A_0:%.*]] = getelementptr i8, i8* [[A]], i64 0
|
||||
; NOT_TUNIT_OPM-NEXT: [[A_1:%.*]] = getelementptr i8, i8* [[A]], i64 1
|
||||
; NOT_TUNIT_OPM-NEXT: [[B_0:%.*]] = getelementptr i8, i8* [[B]], i64 0
|
||||
; NOT_TUNIT_OPM-NEXT: tail call void @two_args(i8* noalias nocapture [[A]], i8* noalias nocapture [[B]])
|
||||
; NOT_TUNIT_OPM-NEXT: tail call void @two_args(i8* nocapture [[A]], i8* nocapture [[A_0]])
|
||||
; NOT_TUNIT_OPM-NEXT: tail call void @two_args(i8* nocapture [[A]], i8* nocapture [[A_1]])
|
||||
; NOT_TUNIT_OPM-NEXT: tail call void @two_args(i8* nocapture [[A_0]], i8* nocapture [[B_0]])
|
||||
; NOT_TUNIT_OPM-NEXT: ret void
|
||||
;
|
||||
%A = tail call noalias i8* @malloc(i64 4)
|
||||
%B = tail call noalias i8* @malloc(i64 4)
|
||||
|
@ -470,6 +470,12 @@ define void @test13_use_noalias(){
|
|||
; CHECK-NEXT: call void @use_i8_internal(i8* noalias nocapture [[C2]])
|
||||
; CHECK-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC_OPM-LABEL: define {{[^@]+}}@test13_use_noalias()
|
||||
; IS__CGSCC_OPM-NEXT: [[M1:%.*]] = tail call noalias i8* @malloc(i64 4)
|
||||
; IS__CGSCC_OPM-NEXT: [[C1:%.*]] = bitcast i8* [[M1]] to i16*
|
||||
; IS__CGSCC_OPM-NEXT: [[C2:%.*]] = bitcast i16* [[C1]] to i8*
|
||||
; IS__CGSCC_OPM-NEXT: call void @use_i8_internal(i8* noalias [[C2]])
|
||||
; IS__CGSCC_OPM-NEXT: ret void
|
||||
%m1 = tail call noalias i8* @malloc(i64 4)
|
||||
%c1 = bitcast i8* %m1 to i16*
|
||||
%c2 = bitcast i16* %c1 to i8*
|
||||
|
@ -498,11 +504,11 @@ define void @test13_use_alias(){
|
|||
|
||||
; TEST 14 i2p casts
|
||||
define internal i32 @p2i(i32* %arg) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@p2i
|
||||
; IS__TUNIT____-SAME: (i32* noalias nofree readnone [[ARG:%.*]]) [[ATTR0]] {
|
||||
; IS__TUNIT____-NEXT: [[P2I:%.*]] = ptrtoint i32* [[ARG]] to i32
|
||||
; IS__TUNIT____-NEXT: ret i32 [[P2I]]
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind readnone willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@p2i
|
||||
; NOT_CGSCC_NPM-SAME: (i32* noalias nofree readnone [[ARG:%.*]]) [[ATTR0]] {
|
||||
; NOT_CGSCC_NPM-NEXT: [[P2I:%.*]] = ptrtoint i32* [[ARG]] to i32
|
||||
; NOT_CGSCC_NPM-NEXT: ret i32 [[P2I]]
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind readnone willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@p2i
|
||||
|
@ -515,14 +521,14 @@ define internal i32 @p2i(i32* %arg) {
|
|||
}
|
||||
|
||||
define i32 @i2p(i32* %arg) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind readonly willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@i2p
|
||||
; IS__TUNIT____-SAME: (i32* nofree readonly [[ARG:%.*]]) [[ATTR4:#.*]] {
|
||||
; IS__TUNIT____-NEXT: [[C:%.*]] = call i32 @p2i(i32* noalias nofree readnone [[ARG]]) [[ATTR0]]
|
||||
; IS__TUNIT____-NEXT: [[I2P:%.*]] = inttoptr i32 [[C]] to i8*
|
||||
; IS__TUNIT____-NEXT: [[BC:%.*]] = bitcast i8* [[I2P]] to i32*
|
||||
; IS__TUNIT____-NEXT: [[CALL:%.*]] = call i32 @ret(i32* nocapture nofree readonly align 4 [[BC]]) [[ATTR4]]
|
||||
; IS__TUNIT____-NEXT: ret i32 [[CALL]]
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind readonly willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@i2p
|
||||
; NOT_CGSCC_NPM-SAME: (i32* nofree readonly [[ARG:%.*]]) [[ATTR4:#.*]] {
|
||||
; NOT_CGSCC_NPM-NEXT: [[C:%.*]] = call i32 @p2i(i32* noalias nofree readnone [[ARG]]) [[ATTR0]]
|
||||
; NOT_CGSCC_NPM-NEXT: [[I2P:%.*]] = inttoptr i32 [[C]] to i8*
|
||||
; NOT_CGSCC_NPM-NEXT: [[BC:%.*]] = bitcast i8* [[I2P]] to i32*
|
||||
; NOT_CGSCC_NPM-NEXT: [[CALL:%.*]] = call i32 @ret(i32* nocapture nofree readonly align 4 [[BC]]) [[ATTR4]]
|
||||
; NOT_CGSCC_NPM-NEXT: ret i32 [[CALL]]
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind readonly willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@i2p
|
||||
|
@ -540,11 +546,11 @@ define i32 @i2p(i32* %arg) {
|
|||
ret i32 %call
|
||||
}
|
||||
define internal i32 @ret(i32* %arg) {
|
||||
; IS__TUNIT____: Function Attrs: argmemonly nofree nosync nounwind readonly willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@ret
|
||||
; IS__TUNIT____-SAME: (i32* nocapture nofree nonnull readonly align 4 dereferenceable(4) [[ARG:%.*]]) [[ATTR5:#.*]] {
|
||||
; IS__TUNIT____-NEXT: [[L:%.*]] = load i32, i32* [[ARG]], align 4
|
||||
; IS__TUNIT____-NEXT: ret i32 [[L]]
|
||||
; NOT_CGSCC_NPM: Function Attrs: argmemonly nofree nosync nounwind readonly willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@ret
|
||||
; NOT_CGSCC_NPM-SAME: (i32* nocapture nofree nonnull readonly align 4 dereferenceable(4) [[ARG:%.*]]) [[ATTR5:#.*]] {
|
||||
; NOT_CGSCC_NPM-NEXT: [[L:%.*]] = load i32, i32* [[ARG]], align 4
|
||||
; NOT_CGSCC_NPM-NEXT: ret i32 [[L]]
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: argmemonly nofree norecurse nosync nounwind readonly willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@ret
|
||||
|
@ -624,11 +630,11 @@ declare void @llvm.lifetime.end.p0i8(i64 immarg, i8* nocapture)
|
|||
@alias_of_p = external global i32*
|
||||
|
||||
define void @make_alias(i32* %p) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@make_alias
|
||||
; IS__TUNIT____-SAME: (i32* nofree writeonly [[P:%.*]]) [[ATTR7:#.*]] {
|
||||
; IS__TUNIT____-NEXT: store i32* [[P]], i32** @alias_of_p, align 8
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@make_alias
|
||||
; NOT_CGSCC_NPM-SAME: (i32* nofree writeonly [[P:%.*]]) [[ATTR7:#.*]] {
|
||||
; NOT_CGSCC_NPM-NEXT: store i32* [[P]], i32** @alias_of_p, align 8
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@make_alias
|
||||
|
@ -641,11 +647,11 @@ define void @make_alias(i32* %p) {
|
|||
}
|
||||
|
||||
define void @only_store(i32* %p) {
|
||||
; IS__TUNIT____: Function Attrs: argmemonly nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@only_store
|
||||
; IS__TUNIT____-SAME: (i32* nocapture nofree nonnull writeonly align 4 dereferenceable(4) [[P:%.*]]) [[ATTR8:#.*]] {
|
||||
; IS__TUNIT____-NEXT: store i32 0, i32* [[P]], align 4
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: argmemonly nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@only_store
|
||||
; NOT_CGSCC_NPM-SAME: (i32* nocapture nofree nonnull writeonly align 4 dereferenceable(4) [[P:%.*]]) [[ATTR8:#.*]] {
|
||||
; NOT_CGSCC_NPM-NEXT: store i32 0, i32* [[P]], align 4
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: argmemonly nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@only_store
|
||||
|
@ -658,17 +664,17 @@ define void @only_store(i32* %p) {
|
|||
}
|
||||
|
||||
define void @test15_caller(i32* noalias %p, i32 %c) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@test15_caller
|
||||
; IS__TUNIT____-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; IS__TUNIT____-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C]], 0
|
||||
; IS__TUNIT____-NEXT: br i1 [[TOBOOL]], label [[IF_END:%.*]], label [[IF_THEN:%.*]]
|
||||
; IS__TUNIT____: if.then:
|
||||
; IS__TUNIT____-NEXT: tail call void @only_store(i32* noalias nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: br label [[IF_END]]
|
||||
; IS__TUNIT____: if.end:
|
||||
; IS__TUNIT____-NEXT: tail call void @make_alias(i32* nofree writeonly [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@test15_caller
|
||||
; NOT_CGSCC_NPM-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; NOT_CGSCC_NPM-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C]], 0
|
||||
; NOT_CGSCC_NPM-NEXT: br i1 [[TOBOOL]], label [[IF_END:%.*]], label [[IF_THEN:%.*]]
|
||||
; NOT_CGSCC_NPM: if.then:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @only_store(i32* noalias nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: br label [[IF_END]]
|
||||
; NOT_CGSCC_NPM: if.end:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @make_alias(i32* nofree writeonly [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@test15_caller
|
||||
|
@ -715,23 +721,23 @@ if.end:
|
|||
; Therefore, only one of the two conditions of if statementes will be fulfilled.
|
||||
|
||||
define internal void @test16_sub(i32* noalias %p, i32 %c1, i32 %c2) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@test16_sub
|
||||
; IS__TUNIT____-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C1:%.*]], i32 [[C2:%.*]]) [[ATTR7]] {
|
||||
; IS__TUNIT____-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C1]], 0
|
||||
; IS__TUNIT____-NEXT: br i1 [[TOBOOL]], label [[IF_END:%.*]], label [[IF_THEN:%.*]]
|
||||
; IS__TUNIT____: if.then:
|
||||
; IS__TUNIT____-NEXT: tail call void @only_store(i32* noalias nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: tail call void @make_alias(i32* nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: br label [[IF_END]]
|
||||
; IS__TUNIT____: if.end:
|
||||
; IS__TUNIT____-NEXT: [[TOBOOL1:%.*]] = icmp eq i32 [[C2]], 0
|
||||
; IS__TUNIT____-NEXT: br i1 [[TOBOOL1]], label [[IF_THEN2:%.*]], label [[IF_END3:%.*]]
|
||||
; IS__TUNIT____: if.then2:
|
||||
; IS__TUNIT____-NEXT: tail call void @only_store(i32* nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: br label [[IF_END3]]
|
||||
; IS__TUNIT____: if.end3:
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@test16_sub
|
||||
; NOT_CGSCC_NPM-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C1:%.*]], i32 [[C2:%.*]]) [[ATTR7]] {
|
||||
; NOT_CGSCC_NPM-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C1]], 0
|
||||
; NOT_CGSCC_NPM-NEXT: br i1 [[TOBOOL]], label [[IF_END:%.*]], label [[IF_THEN:%.*]]
|
||||
; NOT_CGSCC_NPM: if.then:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @only_store(i32* noalias nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @make_alias(i32* nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: br label [[IF_END]]
|
||||
; NOT_CGSCC_NPM: if.end:
|
||||
; NOT_CGSCC_NPM-NEXT: [[TOBOOL1:%.*]] = icmp eq i32 [[C2]], 0
|
||||
; NOT_CGSCC_NPM-NEXT: br i1 [[TOBOOL1]], label [[IF_THEN2:%.*]], label [[IF_END3:%.*]]
|
||||
; NOT_CGSCC_NPM: if.then2:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @only_store(i32* nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: br label [[IF_END3]]
|
||||
; NOT_CGSCC_NPM: if.end3:
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@test16_sub
|
||||
|
@ -772,11 +778,11 @@ if.end3:
|
|||
}
|
||||
|
||||
define void @test16_caller(i32* %p, i32 %c) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@test16_caller
|
||||
; IS__TUNIT____-SAME: (i32* nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; IS__TUNIT____-NEXT: tail call void @test16_sub(i32* noalias nofree writeonly [[P]], i32 [[C]], i32 [[C]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@test16_caller
|
||||
; NOT_CGSCC_NPM-SAME: (i32* nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @test16_sub(i32* noalias nofree writeonly [[P]], i32 [[C]], i32 [[C]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@test16_caller
|
||||
|
@ -808,20 +814,20 @@ define void @test16_caller(i32* %p, i32 %c) {
|
|||
; }
|
||||
|
||||
define void @test17_caller(i32* noalias %p, i32 %c) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@test17_caller
|
||||
; IS__TUNIT____-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; IS__TUNIT____-NEXT: entry:
|
||||
; IS__TUNIT____-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C]], 0
|
||||
; IS__TUNIT____-NEXT: br i1 [[TOBOOL]], label [[L1:%.*]], label [[L2:%.*]]
|
||||
; IS__TUNIT____: l1:
|
||||
; IS__TUNIT____-NEXT: tail call void @make_alias(i32* nofree writeonly [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: br label [[L3:%.*]]
|
||||
; IS__TUNIT____: l2:
|
||||
; IS__TUNIT____-NEXT: tail call void @only_store(i32* nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: br label [[L3]]
|
||||
; IS__TUNIT____: l3:
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@test17_caller
|
||||
; NOT_CGSCC_NPM-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; NOT_CGSCC_NPM-NEXT: entry:
|
||||
; NOT_CGSCC_NPM-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C]], 0
|
||||
; NOT_CGSCC_NPM-NEXT: br i1 [[TOBOOL]], label [[L1:%.*]], label [[L2:%.*]]
|
||||
; NOT_CGSCC_NPM: l1:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @make_alias(i32* nofree writeonly [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: br label [[L3:%.*]]
|
||||
; NOT_CGSCC_NPM: l2:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @only_store(i32* nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: br label [[L3]]
|
||||
; NOT_CGSCC_NPM: l3:
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@test17_caller
|
||||
|
@ -866,10 +872,10 @@ l3:
|
|||
; }
|
||||
|
||||
define void @noreturn() {
|
||||
; IS__TUNIT____: Function Attrs: nofree noreturn nosync nounwind readnone willreturn
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@noreturn
|
||||
; IS__TUNIT____-SAME: () [[ATTR9:#.*]] {
|
||||
; IS__TUNIT____-NEXT: unreachable
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree noreturn nosync nounwind readnone willreturn
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@noreturn
|
||||
; NOT_CGSCC_NPM-SAME: () [[ATTR9:#.*]] {
|
||||
; NOT_CGSCC_NPM-NEXT: unreachable
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse noreturn nosync nounwind readnone willreturn
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@noreturn
|
||||
|
@ -881,18 +887,18 @@ define void @noreturn() {
|
|||
}
|
||||
|
||||
define void @test18_caller(i32* noalias %p, i32 %c) {
|
||||
; IS__TUNIT____: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; IS__TUNIT____-LABEL: define {{[^@]+}}@test18_caller
|
||||
; IS__TUNIT____-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; IS__TUNIT____-NEXT: entry:
|
||||
; IS__TUNIT____-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C]], 0
|
||||
; IS__TUNIT____-NEXT: br i1 [[TOBOOL]], label [[L1:%.*]], label [[L2:%.*]]
|
||||
; IS__TUNIT____: l1:
|
||||
; IS__TUNIT____-NEXT: tail call void @make_alias(i32* nofree writeonly [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: unreachable
|
||||
; IS__TUNIT____: l2:
|
||||
; IS__TUNIT____-NEXT: tail call void @only_store(i32* nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; IS__TUNIT____-NEXT: ret void
|
||||
; NOT_CGSCC_NPM: Function Attrs: nofree nosync nounwind willreturn writeonly
|
||||
; NOT_CGSCC_NPM-LABEL: define {{[^@]+}}@test18_caller
|
||||
; NOT_CGSCC_NPM-SAME: (i32* noalias nofree writeonly [[P:%.*]], i32 [[C:%.*]]) [[ATTR7]] {
|
||||
; NOT_CGSCC_NPM-NEXT: entry:
|
||||
; NOT_CGSCC_NPM-NEXT: [[TOBOOL:%.*]] = icmp eq i32 [[C]], 0
|
||||
; NOT_CGSCC_NPM-NEXT: br i1 [[TOBOOL]], label [[L1:%.*]], label [[L2:%.*]]
|
||||
; NOT_CGSCC_NPM: l1:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @make_alias(i32* nofree writeonly [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: unreachable
|
||||
; NOT_CGSCC_NPM: l2:
|
||||
; NOT_CGSCC_NPM-NEXT: tail call void @only_store(i32* nocapture nofree writeonly align 4 [[P]]) [[ATTR7]]
|
||||
; NOT_CGSCC_NPM-NEXT: ret void
|
||||
;
|
||||
; IS__CGSCC____: Function Attrs: nofree norecurse nosync nounwind willreturn writeonly
|
||||
; IS__CGSCC____-LABEL: define {{[^@]+}}@test18_caller
|
||||
|
|
Loading…
Reference in New Issue