diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
commit | a86343512845c9c1fdbac865fea88aa5fce7142a (patch) | |
tree | 666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/SimpleLoopUnswitch/2015-09-18-Addrspace.ll | |
parent | 7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff) | |
download | bcm5719-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/SimpleLoopUnswitch/2015-09-18-Addrspace.ll')
-rw-r--r-- | llvm/test/Transforms/SimpleLoopUnswitch/2015-09-18-Addrspace.ll | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/llvm/test/Transforms/SimpleLoopUnswitch/2015-09-18-Addrspace.ll b/llvm/test/Transforms/SimpleLoopUnswitch/2015-09-18-Addrspace.ll deleted file mode 100644 index c8de642a5d0..00000000000 --- a/llvm/test/Transforms/SimpleLoopUnswitch/2015-09-18-Addrspace.ll +++ /dev/null @@ -1,29 +0,0 @@ -; RUN: opt < %s -simple-loop-unswitch -S | FileCheck %s -; RUN: opt < %s -simple-loop-unswitch -enable-mssa-loop-dependency=true -verify-memoryssa -S | FileCheck %s - -; In cases where two address spaces do not have the same size pointer, the -; input for the addrspacecast should not be used as a substitute for itself -; when manipulating the pointer. - -target datalayout = "e-m:e-p:16:16-p1:32:16-i32:16-i64:16-n8:16" - -define void @foo() { -; CHECK-LABEL: @foo -entry: - %arrayidx.i1 = getelementptr inbounds i16, i16* undef, i16 undef - %arrayidx.i = addrspacecast i16* %arrayidx.i1 to i16 addrspace(1)* - br i1 undef, label %for.body.i, label %bar.exit - -for.body.i: ; preds = %for.body.i, %entry -; When we call makeLoopInvariant (i.e. trivial LICM) on this load, it -; will try to find the base object to prove deferenceability. If we look -; through the addrspacecast, we'll fail an assertion about bitwidths matching -; CHECK-LABEL: for.body.i -; CHECK: %0 = load i16, i16 addrspace(1)* %arrayidx.i, align 2 - %0 = load i16, i16 addrspace(1)* %arrayidx.i, align 2 - %cmp1.i = icmp eq i16 %0, 0 - br i1 %cmp1.i, label %bar.exit, label %for.body.i - -bar.exit: ; preds = %for.body.i, %entry - ret void -} |