summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/MergeFunc/no-merge-block-address-different-labels.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/MergeFunc/no-merge-block-address-different-labels.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/MergeFunc/no-merge-block-address-different-labels.ll')
-rw-r--r--llvm/test/Transforms/MergeFunc/no-merge-block-address-different-labels.ll96
1 files changed, 0 insertions, 96 deletions
diff --git a/llvm/test/Transforms/MergeFunc/no-merge-block-address-different-labels.ll b/llvm/test/Transforms/MergeFunc/no-merge-block-address-different-labels.ll
deleted file mode 100644
index 3024a9a76a7..00000000000
--- a/llvm/test/Transforms/MergeFunc/no-merge-block-address-different-labels.ll
+++ /dev/null
@@ -1,96 +0,0 @@
-; RUN: opt -S -mergefunc < %s | FileCheck %s
-
-; There is a slight different in these two functions, in that the label values
-; are switched. They are thus not mergeable. This tests that block addresses
-; referring to blocks within each respective compared function are correctly
-; ordered.
-
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
-
-; Function Attrs: nounwind uwtable
-define i32 @_Z1fi(i32 %i) #0 {
-; CHECK-LABEL: define i32 @_Z1fi
-; CHECK-NEXT: entry:
-; CHECK-NEXT: alloca
-entry:
- %i.addr = alloca i32, align 4
- %ret = alloca i32, align 4
- %l = alloca i8*, align 8
- store i32 %i, i32* %i.addr, align 4
- store i32 0, i32* %ret, align 4
-; Right here, this is val_0, and later the if might assign val_1
- store i8* blockaddress(@_Z1fi, %val_0), i8** %l, align 8
- %0 = load i32, i32* %i.addr, align 4
- %and = and i32 %0, 256
- %cmp = icmp eq i32 %and, 0
- br i1 %cmp, label %if.then, label %if.end
-
-if.then:
- store i8* blockaddress(@_Z1fi, %val_1), i8** %l, align 8
- br label %if.end
-
-if.end:
- %1 = load i8*, i8** %l, align 8
- br label %indirectgoto
-
-val_0:
- store i32 12, i32* %ret, align 4
- br label %end
-
-val_1:
- store i32 42, i32* %ret, align 4
- br label %end
-
-end:
- %2 = load i32, i32* %ret, align 4
- ret i32 %2
-
-indirectgoto:
- %indirect.goto.dest = phi i8* [ %1, %if.end ]
- indirectbr i8* %indirect.goto.dest, [label %val_0, label %val_1]
-}
-
-; Function Attrs: nounwind uwtable
-define i32 @_Z1gi(i32 %i) #0 {
-; CHECK-LABEL: define i32 @_Z1gi
-; CHECK-NEXT: entry:
-; CHECK-NEXT: alloca
-entry:
- %i.addr = alloca i32, align 4
- %ret = alloca i32, align 4
- %l = alloca i8*, align 8
- store i32 %i, i32* %i.addr, align 4
- store i32 0, i32* %ret, align 4
-; This time, we store val_1 initially, and later the if might assign val_0
- store i8* blockaddress(@_Z1gi, %val_1), i8** %l, align 8
- %0 = load i32, i32* %i.addr, align 4
- %and = and i32 %0, 256
- %cmp = icmp eq i32 %and, 0
- br i1 %cmp, label %if.then, label %if.end
-
-if.then:
- store i8* blockaddress(@_Z1gi, %val_0), i8** %l, align 8
- br label %if.end
-
-if.end:
- %1 = load i8*, i8** %l, align 8
- br label %indirectgoto
-
-val_0:
- store i32 12, i32* %ret, align 4
- br label %end
-
-val_1:
- store i32 42, i32* %ret, align 4
- br label %end
-
-end:
- %2 = load i32, i32* %ret, align 4
- ret i32 %2
-
-indirectgoto:
- %indirect.goto.dest = phi i8* [ %1, %if.end ]
- indirectbr i8* %indirect.goto.dest, [label %val_1, label %val_0]
-}
-
OpenPOWER on IntegriCloud