forked from OSchip/llvm-project
[LoopAccessAnalysis][NewPM] Fix tests to work under NPM
Pin RUN lines with -analyze to legacy PM, add corresponding NPM RUN lines. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D87662
This commit is contained in:
parent
738bab743b
commit
54e1bf1154
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; In this loop just because we access A through different types (int, float)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; for (unsigned i = 0; i < 100; i++) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Check that loop-indepedent forward dependences are discovered properly.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -store-to-load-forwarding-conflict-detection=false -loop-accesses -analyze | FileCheck %s
|
||||
; RUN: opt < %s -store-to-load-forwarding-conflict-detection=false -loop-accesses -analyze -enable-new-pm=0 | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -store-to-load-forwarding-conflict-detection=false -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; This test checks that we prove the strided accesses to be independent before
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Handle memchecks involving loop-invariant addresses:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
; RUN: opt -analyze --loop-accesses %s | FileCheck %s
|
||||
; RUN: opt -analyze --loop-accesses %s -enable-new-pm=0 | FileCheck %s
|
||||
; RUN: opt -passes=print-access-info %s -disable-output 2>&1 | FileCheck %s
|
||||
|
||||
; This test verifies run-time boundary check of memory accesses.
|
||||
; The original loop:
|
||||
|
@ -18,7 +19,7 @@
|
|||
; The loop was vectorized to 4, 32 byte memory access ( <4 x i64> ),
|
||||
; store a value at *%op touched memory under *%src.
|
||||
|
||||
;CHECK: Printing analysis 'Loop Access Analysis' for function 'fastCopy'
|
||||
;CHECK: function 'fastCopy':
|
||||
;CHECK: (Low: %op High: (32 + %op))
|
||||
;CHECK: (Low: %src High: (32 + %src))
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
; RUN: opt -basic-aa -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes=print-access-info %s -disable-output 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze -S < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 -S < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; This is the test case from PR26314.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -basic-aa -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<aa>,require<scalar-evolution>,require<aa>,loop(print-access-info)' -aa-pipeline='basic-aa' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; For this loop:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Test that the loop accesses are proven safe in this case.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; We give up analyzing the dependences in this loop due to non-constant
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; The runtime memory check code and the access grouping
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -basic-aa -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<aa>,require<scalar-evolution>,require<aa>,loop(print-access-info)' -aa-pipeline='basic-aa' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; If the arrays don't alias this loop is safe with no memchecks:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Analyze this loop:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -loop-accesses -analyze | FileCheck -check-prefix=OLDPM %s
|
||||
; RUN: opt < %s -loop-accesses -analyze -enable-new-pm=0 | FileCheck -check-prefix=OLDPM %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck -check-prefix=NEWPM %s
|
||||
|
||||
; Test to confirm LAA will find multiple stores to an invariant address in the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -loop-accesses -analyze | FileCheck %s
|
||||
; RUN: opt < %s -loop-accesses -analyze -enable-new-pm=0 | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Test to confirm LAA will not find store to invariant address.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -loop-accesses -analyze | FileCheck %s
|
||||
; RUN: opt < %s -loop-accesses -analyze -enable-new-pm=0 | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Inner loop has a store to invariant address, but LAA does not need to identify
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -basic-aa -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; In:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -basic-aa -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; This loop:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Analyze this loop:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -loop-accesses -analyze < %s | FileCheck %s
|
||||
; RUN: opt -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s
|
||||
; RUN: opt -passes='require<scalar-evolution>,require<aa>,loop(print-access-info)' -disable-output < %s 2>&1 | FileCheck %s
|
||||
|
||||
; Analyze this loop:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -basic-aa -loop-accesses -analyze < %s | FileCheck %s -check-prefix=LAA
|
||||
; RUN: opt -basic-aa -loop-accesses -analyze -enable-new-pm=0 < %s | FileCheck %s -check-prefix=LAA
|
||||
; RUN: opt -passes='require<aa>,require<scalar-evolution>,require<aa>,loop(print-access-info)' -aa-pipeline='basic-aa' -disable-output < %s 2>&1 | FileCheck %s --check-prefix=LAA
|
||||
; RUN: opt -loop-versioning -S < %s | FileCheck %s -check-prefix=LV
|
||||
|
||||
|
|
Loading…
Reference in New Issue