[llvm] 88fe246 - [ScalarEvolution] Remove unused check prefixes

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 06:31:14 PST 2020


Author: Simon Pilgrim
Date: 2020-11-10T14:31:02Z
New Revision: 88fe246a349d715f07cb11c4249dfa01e446956d

URL: https://github.com/llvm/llvm-project/commit/88fe246a349d715f07cb11c4249dfa01e446956d
DIFF: https://github.com/llvm/llvm-project/commit/88fe246a349d715f07cb11c4249dfa01e446956d.diff

LOG: [ScalarEvolution] Remove unused check prefixes

Added: 
    

Modified: 
    llvm/test/Analysis/ScalarEvolution/ashr.ll
    llvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/ScalarEvolution/ashr.ll b/llvm/test/Analysis/ScalarEvolution/ashr.ll
index cf54c3e71641..0d661c87430b 100644
--- a/llvm/test/Analysis/ScalarEvolution/ashr.ll
+++ b/llvm/test/Analysis/ScalarEvolution/ashr.ll
@@ -1,60 +1,60 @@
 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
-; RUN: opt < %s --data-layout="e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=ALL,X64 %s
-; RUN: opt < %s --data-layout="e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=ALL,X64 %s
-; RUN: opt < %s --data-layout="e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=ALL,X32 %s
-; RUN: opt < %s --data-layout="e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=ALL,X32 %s
+; RUN: opt < %s --data-layout="e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s
+; RUN: opt < %s --data-layout="e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
+; RUN: opt < %s --data-layout="e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s
+; RUN: opt < %s --data-layout="e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
 
 ; In general, we can't deal with ashr.
 define i32 @t0(i32 %x, i32 %y) {
-; ALL-LABEL: 't0'
-; ALL-NEXT:  Classifying expressions for: @t0
-; ALL-NEXT:    %i0 = ashr i32 %x, %y
-; ALL-NEXT:    --> %i0 U: full-set S: full-set
-; ALL-NEXT:  Determining loop execution counts for: @t0
+; CHECK-LABEL: 't0'
+; CHECK-NEXT:  Classifying expressions for: @t0
+; CHECK-NEXT:    %i0 = ashr i32 %x, %y
+; CHECK-NEXT:    --> %i0 U: full-set S: full-set
+; CHECK-NEXT:  Determining loop execution counts for: @t0
 ;
   %i0 = ashr i32 %x, %y
   ret i32 %i0
 }
 ; Not even if we know it's exact
 define i32 @t1(i32 %x, i32 %y) {
-; ALL-LABEL: 't1'
-; ALL-NEXT:  Classifying expressions for: @t1
-; ALL-NEXT:    %i0 = ashr exact i32 %x, %y
-; ALL-NEXT:    --> %i0 U: full-set S: full-set
-; ALL-NEXT:  Determining loop execution counts for: @t1
+; CHECK-LABEL: 't1'
+; CHECK-NEXT:  Classifying expressions for: @t1
+; CHECK-NEXT:    %i0 = ashr exact i32 %x, %y
+; CHECK-NEXT:    --> %i0 U: full-set S: full-set
+; CHECK-NEXT:  Determining loop execution counts for: @t1
 ;
   %i0 = ashr exact i32 %x, %y
   ret i32 %i0
 }
 ; Not even if the shift amount is a constant.
 define i32 @t2(i32 %x, i32 %y) {
-; ALL-LABEL: 't2'
-; ALL-NEXT:  Classifying expressions for: @t2
-; ALL-NEXT:    %i0 = ashr i32 %x, 4
-; ALL-NEXT:    --> %i0 U: full-set S: [-134217728,134217728)
-; ALL-NEXT:  Determining loop execution counts for: @t2
+; CHECK-LABEL: 't2'
+; CHECK-NEXT:  Classifying expressions for: @t2
+; CHECK-NEXT:    %i0 = ashr i32 %x, 4
+; CHECK-NEXT:    --> %i0 U: full-set S: [-134217728,134217728)
+; CHECK-NEXT:  Determining loop execution counts for: @t2
 ;
   %i0 = ashr i32 %x, 4
   ret i32 %i0
 }
 ; However, if it's a constant AND the shift is exact, we can model it!
 define i32 @t3(i32 %x, i32 %y) {
-; ALL-LABEL: 't3'
-; ALL-NEXT:  Classifying expressions for: @t3
-; ALL-NEXT:    %i0 = ashr exact i32 %x, 4
-; ALL-NEXT:    --> ((((-1 * %x) smax %x) /u 16) * (1 smin (-1 smax %x)))<nsw> U: [-268435455,268435456) S: [-268435455,268435456)
-; ALL-NEXT:  Determining loop execution counts for: @t3
+; CHECK-LABEL: 't3'
+; CHECK-NEXT:  Classifying expressions for: @t3
+; CHECK-NEXT:    %i0 = ashr exact i32 %x, 4
+; CHECK-NEXT:    --> ((((-1 * %x) smax %x) /u 16) * (1 smin (-1 smax %x)))<nsw> U: [-268435455,268435456) S: [-268435455,268435456)
+; CHECK-NEXT:  Determining loop execution counts for: @t3
 ;
   %i0 = ashr exact i32 %x, 4
   ret i32 %i0
 }
 ; As long as the shift amount is in-bounds
 define i32 @t4(i32 %x, i32 %y) {
-; ALL-LABEL: 't4'
-; ALL-NEXT:  Classifying expressions for: @t4
-; ALL-NEXT:    %i0 = ashr exact i32 %x, 32
-; ALL-NEXT:    --> %i0 U: full-set S: full-set
-; ALL-NEXT:  Determining loop execution counts for: @t4
+; CHECK-LABEL: 't4'
+; CHECK-NEXT:  Classifying expressions for: @t4
+; CHECK-NEXT:    %i0 = ashr exact i32 %x, 32
+; CHECK-NEXT:    --> %i0 U: full-set S: full-set
+; CHECK-NEXT:  Determining loop execution counts for: @t4
 ;
   %i0 = ashr exact i32 %x, 32
   ret i32 %i0
@@ -62,11 +62,11 @@ define i32 @t4(i32 %x, i32 %y) {
 
 ; One more test, just to see that we model constant correctly
 define i32 @t5(i32 %x, i32 %y) {
-; ALL-LABEL: 't5'
-; ALL-NEXT:  Classifying expressions for: @t5
-; ALL-NEXT:    %i0 = ashr exact i32 %x, 5
-; ALL-NEXT:    --> ((((-1 * %x) smax %x) /u 32) * (1 smin (-1 smax %x)))<nsw> U: [-134217727,134217728) S: [-134217727,134217728)
-; ALL-NEXT:  Determining loop execution counts for: @t5
+; CHECK-LABEL: 't5'
+; CHECK-NEXT:  Classifying expressions for: @t5
+; CHECK-NEXT:    %i0 = ashr exact i32 %x, 5
+; CHECK-NEXT:    --> ((((-1 * %x) smax %x) /u 32) * (1 smin (-1 smax %x)))<nsw> U: [-134217727,134217728) S: [-134217727,134217728)
+; CHECK-NEXT:  Determining loop execution counts for: @t5
 ;
   %i0 = ashr exact i32 %x, 5
   ret i32 %i0

diff  --git a/llvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll b/llvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll
index 34d4f701c6d1..1429f60a1729 100644
--- a/llvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll
+++ b/llvm/test/Analysis/ScalarEvolution/ptrtoint-constantexpr-loop.ll
@@ -1,12 +1,12 @@
 ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
-; RUN: opt < %s --data-layout="p:64:64:64:64" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=ALL,X64,PTR64_IDX64 %s
-; RUN: opt < %s --data-layout="p:64:64:64:64" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=ALL,X64,PTR64_IDX64 %s
-; RUN: opt < %s --data-layout="p:64:64:64:32" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=ALL,X64,PTR64_IDX32 %s
-; RUN: opt < %s --data-layout="p:64:64:64:32" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=ALL,X64,PTR64_IDX32 %s
-; RUN: opt < %s --data-layout="p:16:16:16:16" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=ALL,X32,PTR16_IDX16 %s
-; RUN: opt < %s --data-layout="p:16:16:16:16" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=ALL,X32,PTR16_IDX16 %s
-; RUN: opt < %s --data-layout="p:16:16:16:32" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=ALL,X32,PTR16_IDX32 %s
-; RUN: opt < %s --data-layout="p:16:16:16:32" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=ALL,X32,PTR16_IDX32 %s
+; RUN: opt < %s --data-layout="p:64:64:64:64" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=PTR64_IDX64 %s
+; RUN: opt < %s --data-layout="p:64:64:64:64" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=PTR64_IDX64 %s
+; RUN: opt < %s --data-layout="p:64:64:64:32" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=PTR64_IDX32 %s
+; RUN: opt < %s --data-layout="p:64:64:64:32" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=PTR64_IDX32 %s
+; RUN: opt < %s --data-layout="p:16:16:16:16" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=PTR16_IDX16 %s
+; RUN: opt < %s --data-layout="p:16:16:16:16" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=PTR16_IDX16 %s
+; RUN: opt < %s --data-layout="p:16:16:16:32" -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck --check-prefixes=PTR16_IDX32 %s
+; RUN: opt < %s --data-layout="p:16:16:16:32" -S -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck --check-prefixes=PTR16_IDX32 %s
 
 @global = external hidden global [0 x i8]
 


        


More information about the llvm-commits mailing list