From a86343512845c9c1fdbac865fea88aa5fce7142a Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 17 Apr 2019 02:12:23 +0000 Subject: 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 --- .../LowerSwitch/2003-05-01-PHIProblem.ll | 15 - .../LowerSwitch/2003-08-23-EmptySwitch.ll | 9 - .../LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll | 19 - .../LowerSwitch/2014-06-10-SwitchContiguousOpt.ll | 27 - .../2014-06-11-SwitchDefaultUnreachableOpt.ll | 44 - .../LowerSwitch/2014-06-23-PHIlowering.ll | 40 - .../LowerSwitch/delete-default-block-crash.ll | 27 - .../LowerSwitch/do-not-handle-impossible-values.ll | 895 --------------------- llvm/test/Transforms/LowerSwitch/feature.ll | 104 --- .../fold-popular-case-to-unreachable-default.ll | 110 --- .../Transforms/LowerSwitch/phi-in-dead-block.ll | 40 - 11 files changed, 1330 deletions(-) delete mode 100644 llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/2014-06-23-PHIlowering.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/delete-default-block-crash.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/do-not-handle-impossible-values.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/feature.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll delete mode 100644 llvm/test/Transforms/LowerSwitch/phi-in-dead-block.ll (limited to 'llvm/test/Transforms/LowerSwitch') diff --git a/llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll b/llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll deleted file mode 100644 index d143ab05035..00000000000 --- a/llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll +++ /dev/null @@ -1,15 +0,0 @@ -; RUN: opt < %s -lowerswitch - -define void @child(i32 %ct.1) { -entry: - switch i32 0, label %return [ - i32 3, label %UnifiedExitNode - i32 0, label %return - ] -return: ; preds = %entry, %entry - %result.0 = phi i32* [ null, %entry ], [ null, %entry ] ; [#uses=0] - br label %UnifiedExitNode -UnifiedExitNode: ; preds = %return, %entry - ret void -} - diff --git a/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll b/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll deleted file mode 100644 index 61e1dcd345b..00000000000 --- a/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: opt < %s -lowerswitch - -define void @test() { - switch i32 0, label %Next [ - ] -Next: ; preds = %0 - ret void -} - diff --git a/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll b/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll deleted file mode 100644 index 964b07e3066..00000000000 --- a/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll +++ /dev/null @@ -1,19 +0,0 @@ -; RUN: opt < %s -lowerswitch -disable-output - -define void @solve() { -entry: - %targetBlock = call i16 @solve_code( ) ; [#uses=1] - br label %codeReplTail -then.1: ; preds = %codeReplTail - ret void -loopexit.0: ; preds = %codeReplTail - ret void -codeReplTail: ; preds = %codeReplTail, %entry - switch i16 %targetBlock, label %codeReplTail [ - i16 0, label %loopexit.0 - i16 1, label %then.1 - ] -} - -declare i16 @solve_code() - diff --git a/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll b/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll deleted file mode 100644 index 22173b492c4..00000000000 --- a/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll +++ /dev/null @@ -1,27 +0,0 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s -; CHECK-NOT: icmp eq i32 %0, 1 - -define i32 @foo(i32 %a) #0 { -entry: - %retval = alloca i32, align 4 - %a.addr = alloca i32, align 4 - store i32 %a, i32* %a.addr, align 4 - %0 = load i32, i32* %a.addr, align 4 - switch i32 %0, label %sw.default [ - i32 0, label %sw.bb - i32 1, label %sw.bb1 - i32 2, label %sw.bb2 - ] - -sw.bb: - ret i32 12 - -sw.bb1: - ret i32 4 - -sw.bb2: - ret i32 2 - -sw.default: - ret i32 9 -} diff --git a/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll b/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll deleted file mode 100644 index 2652a6cc5e0..00000000000 --- a/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll +++ /dev/null @@ -1,44 +0,0 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s -; -; The switch is lowered with a single icmp. -; CHECK: icmp -; CHECK-NOT: icmp -; -;int foo(int a) { -; -; switch (a) { -; case 0: -; return 10; -; case 1: -; return 3; -; default: -; __builtin_unreachable(); -; } -; -;} - -define i32 @foo(i32 %a) { - %1 = alloca i32, align 4 - %2 = alloca i32, align 4 - store i32 %a, i32* %2, align 4 - %3 = load i32, i32* %2, align 4 - switch i32 %3, label %6 [ - i32 0, label %4 - i32 1, label %5 - ] - -;