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/LICM/constexpr.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/LICM/constexpr.ll')
-rw-r--r-- | llvm/test/Transforms/LICM/constexpr.ll | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/llvm/test/Transforms/LICM/constexpr.ll b/llvm/test/Transforms/LICM/constexpr.ll deleted file mode 100644 index 488821ac8fd..00000000000 --- a/llvm/test/Transforms/LICM/constexpr.ll +++ /dev/null @@ -1,47 +0,0 @@ -; RUN: opt < %s -S -basicaa -licm | FileCheck %s -; RUN: opt -aa-pipeline=basic-aa -passes='require<opt-remark-emit>,loop(licm)' < %s -S | FileCheck %s -; This fixes PR22460 - -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-pc-windows-msvc" - -@in = internal unnamed_addr global i32* null, align 8 -@out = internal unnamed_addr global i32* null, align 8 - -; CHECK-LABEL: @bar -; CHECK: entry: -; CHECK: load i64, i64* bitcast (i32** @in to i64*) -; CHECK: do.body: -; CHECK-NOT: load - -define i64 @bar(i32 %N) { -entry: - br label %do.body - -do.body: ; preds = %l2, %entry - %i.0 = phi i32 [ 0, %entry ], [ %inc, %l2 ] - %total = phi i64 [ 0, %entry ], [ %next, %l2 ] - %c = icmp eq i32 %N, 6 - br i1 %c, label %l1, label %do.body.l2_crit_edge - -do.body.l2_crit_edge: ; preds = %do.body - %inval.pre = load i32*, i32** @in, align 8 - br label %l2 - -l1: ; preds = %do.body - %v1 = load i64, i64* bitcast (i32** @in to i64*), align 8 - store i64 %v1, i64* bitcast (i32** @out to i64*), align 8 - %0 = inttoptr i64 %v1 to i32* - br label %l2 - -l2: ; preds = %do.body.l2_crit_edge, %l1 - %inval = phi i32* [ %inval.pre, %do.body.l2_crit_edge ], [ %0, %l1 ] - %int = ptrtoint i32* %inval to i64 - %next = add i64 %total, %int - %inc = add nsw i32 %i.0, 1 - %cmp = icmp slt i32 %inc, %N - br i1 %cmp, label %do.body, label %do.end - -do.end: ; preds = %l2 - ret i64 %total -} |