summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/IPConstantProp/pthreads.ll
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
committerEric Christopher <echristo@gmail.com>2019-04-17 02:12:23 +0000
commita86343512845c9c1fdbac865fea88aa5fce7142a (patch)
tree666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/IPConstantProp/pthreads.ll
parent7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff)
downloadbcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz
bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/IPConstantProp/pthreads.ll')
-rw-r--r--llvm/test/Transforms/IPConstantProp/pthreads.ll49
1 files changed, 0 insertions, 49 deletions
diff --git a/llvm/test/Transforms/IPConstantProp/pthreads.ll b/llvm/test/Transforms/IPConstantProp/pthreads.ll
deleted file mode 100644
index 0af2c166a08..00000000000
--- a/llvm/test/Transforms/IPConstantProp/pthreads.ll
+++ /dev/null
@@ -1,49 +0,0 @@
-; RUN: opt -ipconstprop -S < %s | FileCheck %s
-;
-; #include <pthread.h>
-;
-; void *GlobalVPtr;
-;
-; static void *foo(void *arg) { return arg; }
-; static void *bar(void *arg) { return arg; }
-;
-; int main() {
-; pthread_t thread;
-; pthread_create(&thread, NULL, foo, NULL);
-; pthread_create(&thread, NULL, bar, &GlobalVPtr);
-; return 0;
-; }
-;
-; Verify the constant values NULL and &GlobalVPtr are propagated into foo and
-; bar, respectively.
-;
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-
-%union.pthread_attr_t = type { i64, [48 x i8] }
-
-@GlobalVPtr = common dso_local global i8* null, align 8
-
-define dso_local i32 @main() {
-entry:
- %thread = alloca i64, align 8
- %call = call i32 @pthread_create(i64* nonnull %thread, %union.pthread_attr_t* null, i8* (i8*)* nonnull @foo, i8* null)
- %call1 = call i32 @pthread_create(i64* nonnull %thread, %union.pthread_attr_t* null, i8* (i8*)* nonnull @bar, i8* bitcast (i8** @GlobalVPtr to i8*))
- ret i32 0
-}
-
-declare !callback !0 dso_local i32 @pthread_create(i64*, %union.pthread_attr_t*, i8* (i8*)*, i8*)
-
-define internal i8* @foo(i8* %arg) {
-entry:
-; CHECK: ret i8* null
- ret i8* %arg
-}
-
-define internal i8* @bar(i8* %arg) {
-entry:
-; CHECK: ret i8* bitcast (i8** @GlobalVPtr to i8*)
- ret i8* %arg
-}
-
-!1 = !{i64 2, i64 3, i1 false}
-!0 = !{!1}
OpenPOWER on IntegriCloud