diff options
| author | Xin Tong <trent.xin.tong@gmail.com> | 2017-05-21 00:37:55 +0000 |
|---|---|---|
| committer | Xin Tong <trent.xin.tong@gmail.com> | 2017-05-21 00:37:55 +0000 |
| commit | 9fbfeefadfad06ee55a1e4012a6a3fb3893936d2 (patch) | |
| tree | a7fc16eba5dfaeb8deb3ed51cfa3fe86e2345e98 /llvm/test | |
| parent | 75af3af95780e1c379409bf56c516a272c4fa961 (diff) | |
| download | bcm5719-llvm-9fbfeefadfad06ee55a1e4012a6a3fb3893936d2.tar.gz bcm5719-llvm-9fbfeefadfad06ee55a1e4012a6a3fb3893936d2.zip | |
Revert "Add pthread_self function prototype and make it speculatable."
This reverts commit 143d7445b5dfa2f6d6c45bdbe0433d9fc531be21.
Build breaking
llvm-svn: 303496
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/LICM/pthread.ll | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/llvm/test/Transforms/LICM/pthread.ll b/llvm/test/Transforms/LICM/pthread.ll deleted file mode 100644 index 6a7aa499b5a..00000000000 --- a/llvm/test/Transforms/LICM/pthread.ll +++ /dev/null @@ -1,38 +0,0 @@ -; RUN: opt < %s -S -inferattrs -licm | FileCheck %s - -; CHECK-LABEL: define void @pthread_self_safe( -; CHECK-NEXT: call i64 @pthread_self() -define void @pthread_self_safe(i32) { - br label %2 - -; <label>:2: ; preds = %7, %1 - %idx = phi i32 [ 0, %1 ], [ %8, %7 ] - %3 = icmp slt i32 %idx, %0 - br i1 %3, label %4, label %9 - -; <label>:4: ; preds = %2 - call void @external_func_that_could_do_anything() - %5 = call i64 @pthread_self() #1 - %6 = trunc i64 %5 to i32 - call void @use_pthread_self(i32 %6) - br label %7 - -; <label>:7: ; preds = %4 - %8 = add nsw i32 %idx, 1 - br label %2 - -; <label>:9: ; preds = %2 - ret void -} - -; CHECK: declare i64 @pthread_self() #0 -; CHECK: attributes #0 = { nounwind readnone speculatable } -; Function Attrs: nounwind readnone -declare i64 @pthread_self() #1 - -declare void @external_func_that_could_do_anything() - -declare void @use_pthread_self(i32) - -attributes #1 = { nounwind readnone } - |

