summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/align-external.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/InstCombine/align-external.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/InstCombine/align-external.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/align-external.ll41
1 files changed, 0 insertions, 41 deletions
diff --git a/llvm/test/Transforms/InstCombine/align-external.ll b/llvm/test/Transforms/InstCombine/align-external.ll
deleted file mode 100644
index 15f3096105b..00000000000
--- a/llvm/test/Transforms/InstCombine/align-external.ll
+++ /dev/null
@@ -1,41 +0,0 @@
-; RUN: opt < %s -instcombine -S | FileCheck %s
-
-; Don't assume that external global variables or those with weak linkage have
-; their preferred alignment. They may only have the ABI minimum alignment.
-
-target datalayout = "i32:8:32"
-
-@A = external global i32
-@B = weak_odr global i32 0
-
-@C = available_externally global <4 x i32> zeroinitializer, align 4
-; CHECK: @C = available_externally global <4 x i32> zeroinitializer, align 4
-
-define i64 @foo(i64 %a) {
- %t = ptrtoint i32* @A to i64
- %s = shl i64 %a, 3
- %r = or i64 %t, %s
- %q = add i64 %r, 1
- ret i64 %q
-}
-
-; CHECK-LABEL: define i64 @foo(i64 %a)
-; CHECK: %s = shl i64 %a, 3
-; CHECK: %r = or i64 %s, ptrtoint (i32* @A to i64)
-; CHECK: %q = add i64 %r, 1
-; CHECK: ret i64 %q
-
-define i32 @bar() {
- %r = load i32, i32* @B, align 1
- ret i32 %r
-}
-
-; CHECK-LABEL: @bar()
-; CHECK: align 1
-
-define void @vec_store() {
- store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* @C, align 4
- ret void
-}
-; CHECK: define void @vec_store()
-; CHECK: store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* @C, align 4
OpenPOWER on IntegriCloud