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/LoopReroll/negative.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/LoopReroll/negative.ll')
-rw-r--r-- | llvm/test/Transforms/LoopReroll/negative.ll | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/llvm/test/Transforms/LoopReroll/negative.ll b/llvm/test/Transforms/LoopReroll/negative.ll deleted file mode 100644 index 36f6806e1c3..00000000000 --- a/llvm/test/Transforms/LoopReroll/negative.ll +++ /dev/null @@ -1,48 +0,0 @@ -; RUN: opt -S -loop-reroll %s | FileCheck %s -target triple = "aarch64--linux-gnu" -@buf = global [16 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A", align 1 - -define i32 @test1(i32 %len, i8* nocapture readonly %buf) #0 { -entry: - %cmp.13 = icmp sgt i32 %len, 1 - br i1 %cmp.13, label %while.body.lr.ph, label %while.end - -while.body.lr.ph: ; preds = %entry - br label %while.body - -while.body: -;CHECK-LABEL: while.body: -;CHECK-NEXT: %indvar = phi i32 [ %indvar.next, %while.body ], [ 0, %while.body.lr.ph ] -;CHECK-NEXT: %sum4.015 = phi i64 [ 0, %while.body.lr.ph ], [ %add, %while.body ] -;CHECK-NOT: %sub5 = add nsw i32 %len.addr.014, -1 -;CHECK-NOT: %sub5 = add nsw i32 %len.addr.014, -2 -;CHECK: br i1 %exitcond, label %while.cond.while.end_crit_edge, label %while.body - - %sum4.015 = phi i64 [ 0, %while.body.lr.ph ], [ %add4, %while.body ] - %len.addr.014 = phi i32 [ %len, %while.body.lr.ph ], [ %sub5, %while.body ] - %idxprom = sext i32 %len.addr.014 to i64 - %arrayidx = getelementptr inbounds i8, i8* %buf, i64 %idxprom - %0 = load i8, i8* %arrayidx, align 1 - %conv = zext i8 %0 to i64 - %add = add i64 %conv, %sum4.015 - %sub = add nsw i32 %len.addr.014, -1 - %idxprom1 = sext i32 %sub to i64 - %arrayidx2 = getelementptr inbounds i8, i8* %buf, i64 %idxprom1 - %1 = load i8, i8* %arrayidx2, align 1 - %conv3 = zext i8 %1 to i64 - %add4 = add i64 %add, %conv3 - %sub5 = add nsw i32 %len.addr.014, -2 - %cmp = icmp sgt i32 %sub5, 1 - br i1 %cmp, label %while.body, label %while.cond.while.end_crit_edge - -while.cond.while.end_crit_edge: ; preds = %while.body - %add4.lcssa = phi i64 [ %add4, %while.body ] - %phitmp = trunc i64 %add4.lcssa to i32 - br label %while.end - -while.end: ; preds = %while.cond.while.end_crit_edge, %entry - %sum4.0.lcssa = phi i32 [ %phitmp, %while.cond.while.end_crit_edge ], [ 0, %entry ] - ret i32 %sum4.0.lcssa - unreachable -} - |