Skip to content

Commit 6a23995

Browse files
aeubanksmemfrob
authored andcommitted
[NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch
As mentioned in http://lists.llvm.org/pipermail/llvm-dev/2020-July/143395.html, loop-unswitch has not been ported to the NPM. Instead people are using simple-loop-unswitch. Pin all tests in Transforms/LoopUnswitch to legacy PM and replace all other uses of loop-unswitch with simple-loop-unswitch. One test that didn't fit into the above was 2014-06-21-congruent-constant.ll which seems to only pass with loop-unswitch. That is also pinned to legacy PM. Now all tests containing "-loop-unswitch" anywhere in the test succeed with NPM turned on by default. Reviewed By: ychen Differential Revision: https://reviews.llvm.org/D85360
1 parent 1f34c92 commit 6a23995

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+95
-95
lines changed

llvm/test/Analysis/AliasSet/unknown-inst-tracking.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -licm -loop-unswitch < %s | FileCheck %s
1+
; RUN: opt -S -licm -simple-loop-unswitch < %s | FileCheck %s
22

33
; This test checks for a crash. See PR32587.
44

llvm/test/Analysis/Dominators/2007-07-11-SplitBlock.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-rotate -loop-unswitch -disable-output
1+
; RUN: opt < %s -loop-rotate -simple-loop-unswitch -disable-output
22

33
define i32 @stringSearch_Clib(i32 %count) {
44
entry:

llvm/test/Analysis/Dominators/2007-07-12-SplitBlock.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-rotate -licm -loop-unswitch -disable-output
1+
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
22

33
define i32 @main(i32 %argc, i8** %argv) {
44
entry:

llvm/test/Analysis/MemorySSA/loop-unswitch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -loop-unswitch -disable-basic-aa -enable-mssa-loop-dependency -verify-memoryssa < %s | FileCheck %s
1+
; RUN: opt -S -simple-loop-unswitch -disable-basic-aa -enable-mssa-loop-dependency -verify-memoryssa < %s | FileCheck %s
22
; REQUIRES: asserts
33

44
target triple = "x86_64-unknown-linux-gnu"

llvm/test/Analysis/MemorySSA/pr39197.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -mtriple=s390x-linux-gnu -mcpu=z13 -enable-mssa-loop-dependency -verify-memoryssa -sroa -globalopt -function-attrs -simplifycfg -licm -loop-unswitch %s -S | FileCheck %s
1+
; RUN: opt -mtriple=s390x-linux-gnu -mcpu=z13 -enable-mssa-loop-dependency -verify-memoryssa -sroa -globalopt -function-attrs -simplifycfg -licm -simple-loop-unswitch %s -S | FileCheck %s
22
; REQUIRES: asserts
33

44
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"

llvm/test/Analysis/MemorySSA/pr40749_2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -licm -loop-unswitch -enable-mssa-loop-dependency -verify-memoryssa %s | FileCheck %s
1+
; RUN: opt -S -licm -simple-loop-unswitch -enable-mssa-loop-dependency -verify-memoryssa %s | FileCheck %s
22
; REQUIRES: asserts
33
target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"
44
target triple = "s390x-ibm-linux"

llvm/test/Other/2007-09-10-PassManager.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-unswitch -indvars -disable-output
1+
; RUN: opt < %s -simple-loop-unswitch -indvars -disable-output
22
; Require SCEV before LCSSA.
33
define void @foo() {
44
entry:

llvm/test/Transforms/IndVarSimplify/2014-06-21-congruent-constant.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -loop-unswitch -instcombine -indvars < %s | FileCheck %s
1+
; RUN: opt -S -loop-unswitch -instcombine -indvars -enable-new-pm=0 < %s | FileCheck %s
22

33
; This used to crash in SCEVExpander when there were congruent phis with and
44
; undef incoming value from the loop header. The -loop-unswitch -instcombine is

llvm/test/Transforms/LCSSA/2007-07-12-LICM-2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-rotate -licm -loop-unswitch -disable-output
1+
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
22
define i32 @main(i32 %argc, i8** %argv) {
33
entry:
44
br label %bb7

llvm/test/Transforms/LCSSA/2007-07-12-LICM-3.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -loop-rotate -licm -loop-unswitch -disable-output
1+
; RUN: opt < %s -loop-rotate -licm -simple-loop-unswitch -disable-output
22

33
define i32 @main(i32 %argc, i8** %argv) {
44
entry:

0 commit comments

Comments
 (0)