mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 12:51:20 +00:00
[DSE] Move legacy tests to DeadStoreElimination/MemDepAnalysis.
This patch moves the tests for the old MemDepAnalysis based DSE implementation to the MemDepAnalysis subdirectory and updates them to pass -enable-dse-memoryssa=false. This is in preparation for the switch to MemorySSA-backed DSE.
This commit is contained in:
parent
f632c6e1cd
commit
756735e559
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
; PR9561
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
|
||||
target triple = "i386-apple-darwin9.8"
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
||||
target triple = "x86_64-apple-darwin"
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-f128:128:128-n8:16:32:64"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S -enable-dse-partial-overwrite-tracking | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S -enable-dse-partial-overwrite-tracking | FileCheck %s
|
||||
; PR28588
|
||||
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
declare i8* @_Znwj(i32) local_unnamed_addr
|
||||
declare void @foo() readnone
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
define void @write4to7(i32* nocapture %p) {
|
||||
; CHECK-LABEL: @write4to7(
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
%struct.vec2 = type { <4 x i32>, <4 x i32> }
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-partial-store-merging=false -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -enable-dse-partial-store-merging=false -S | FileCheck %s
|
||||
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
|
||||
|
||||
; Ensure that the dead store is deleted in this case. It is wholely
|
@ -1,6 +1,6 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s --data-layout "e" -dse -enable-dse-partial-store-merging=true -S | FileCheck --check-prefix CHECK --check-prefix CHECK-LE %s
|
||||
; RUN: opt < %s --data-layout "E" -dse -enable-dse-partial-store-merging=true -S | FileCheck --check-prefix CHECK --check-prefix CHECK-BE %s
|
||||
; RUN: opt < %s --data-layout "e" -dse -enable-dse-memoryssa=false -enable-dse-partial-store-merging=true -S | FileCheck --check-prefix CHECK --check-prefix CHECK-LE %s
|
||||
; RUN: opt < %s --data-layout "E" -dse -enable-dse-memoryssa=false -enable-dse-partial-store-merging=true -S | FileCheck --check-prefix CHECK --check-prefix CHECK-BE %s
|
||||
|
||||
; This test used to hit an assertion (see PR41949).
|
||||
;
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
; Both stores should be emitted because we can't tell if the gather aliases.
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -basic-aa -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
|
||||
target triple = "x86_64-apple-macosx10.7.0"
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
declare noalias i8* @calloc(i64, i64)
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -dse -enable-dse-partial-store-merging=false < %s | FileCheck %s
|
||||
; RUN: opt -S -dse -enable-dse-memoryssa=false -enable-dse-partial-store-merging=false < %s | FileCheck %s
|
||||
target datalayout = "E-m:e-i64:64-n32:64"
|
||||
target triple = "powerpc64le-unknown-linux"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -basic-aa -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
%t = type { i32 }
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S
|
||||
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
|
||||
target triple = "i386-apple-darwin10.0"
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -basic-aa -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -debugify -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -debugify -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -dse -disable-output < %s
|
||||
; RUN: opt -dse -enable-dse-memoryssa=false -disable-output < %s
|
||||
; test that we don't crash
|
||||
declare void @bar()
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -basic-aa -dse < %s | FileCheck %s
|
||||
; RUN: opt -S -basic-aa -dse -enable-dse-memoryssa=false < %s | FileCheck %s
|
||||
|
||||
; We conservative choose to prevent dead store elimination
|
||||
; across release or stronger fences. It's not required
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
target datalayout = "e-p:64:64:64"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -dse < %s | FileCheck %s
|
||||
; RUN: opt -S -dse -enable-dse-memoryssa=false < %s | FileCheck %s
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
; If there are two stores to the same location, DSE should be able to remove
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S < %s -dse | FileCheck %s
|
||||
; RUN: opt -S < %s -dse -enable-dse-memoryssa=false | FileCheck %s
|
||||
|
||||
declare void @llvm.sideeffect()
|
||||
|
@ -1,5 +1,5 @@
|
||||
; Test to make sure llvm.invariant.start calls are not treated as clobbers.
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
declare {}* @llvm.invariant.start.p0i8(i64, i8* nocapture) nounwind readonly
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
; CHECK-LABEL: void @skipBarrier(i8* %ptr)
|
||||
define void @skipBarrier(i8* %ptr) {
|
||||
@ -62,4 +62,4 @@ define void @skip4Barriers(i8* %ptr) {
|
||||
|
||||
|
||||
declare i8* @llvm.launder.invariant.group.p0i8(i8*)
|
||||
declare i8* @llvm.strip.invariant.group.p0i8(i8*)
|
||||
declare i8* @llvm.strip.invariant.group.p0i8(i8*)
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -basic-aa -dse < %s | FileCheck %s
|
||||
; RUN: opt -S -basic-aa -dse -enable-dse-memoryssa=false < %s | FileCheck %s
|
||||
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -basic-aa -dse < %s | FileCheck %s
|
||||
; RUN: opt -S -basic-aa -dse -enable-dse-memoryssa=false < %s | FileCheck %s
|
||||
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -S -basic-aa -dse < %s | FileCheck %s
|
||||
; RUN: opt -S -basic-aa -dse -enable-dse-memoryssa=false < %s | FileCheck %s
|
||||
|
||||
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: opt -S -dse -memdep-block-scan-limit=3 < %s | FileCheck %s
|
||||
; RUN: opt -S -strip-debug -dse -memdep-block-scan-limit=3 < %s | FileCheck %s
|
||||
; RUN: opt -S -dse -enable-dse-memoryssa=false -memdep-block-scan-limit=3 < %s | FileCheck %s
|
||||
; RUN: opt -S -strip-debug -dse -enable-dse-memoryssa=false -memdep-block-scan-limit=3 < %s | FileCheck %s
|
||||
|
||||
; Test case to check that the memory dependency analysis gets the same
|
||||
; result even if we have a dbg value between the memcpy and
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -S -dse < %s | FileCheck %s
|
||||
; RUN: opt -S -dse -enable-dse-memoryssa=false < %s | FileCheck %s
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i8(i8* nocapture, i8* nocapture, i8, i1) nounwind
|
||||
declare void @llvm.memmove.p0i8.p0i8.i8(i8* nocapture, i8* nocapture, i8, i1) nounwind
|
@ -1,7 +1,7 @@
|
||||
; Test that the getelementptr generated when the dse pass determines that
|
||||
; a memset can be shortened has the debugloc carried over from the memset.
|
||||
|
||||
; RUN: opt -S -march=native -dse < %s| FileCheck %s
|
||||
; RUN: opt -S -march=native -dse -enable-dse-memoryssa=false < %s| FileCheck %s
|
||||
; CHECK: bitcast [5 x i64]* %{{[a-zA-Z_][a-zA-Z0-9_]*}} to i8*, !dbg
|
||||
; CHECK-NEXT: %{{[0-9]+}} = getelementptr inbounds i8, i8* %0, i64 32, !dbg ![[DBG:[0-9]+]]
|
||||
; CHECK: ![[DBG]] = !DILocation(line: 2,
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -dse -enable-dse-partial-store-merging -S < %s | FileCheck %s
|
||||
; RUN: opt -dse -enable-dse-memoryssa=false -enable-dse-partial-store-merging -S < %s | FileCheck %s
|
||||
target datalayout = "E-m:e-i64:64-i128:128-n32:64-S128"
|
||||
|
||||
define void @byte_by_byte_replacement(i32 *%ptr) {
|
@ -1,5 +1,5 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -dse -enable-dse-partial-store-merging -S < %s | FileCheck %s
|
||||
; RUN: opt -dse -enable-dse-memoryssa=false -enable-dse-partial-store-merging -S < %s | FileCheck %s
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-f128:128:128-n8:16:32:64"
|
||||
|
||||
define void @byte_by_byte_replacement(i32 *%ptr) {
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -basic-aa -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
|
||||
declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i1) nounwind
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
|
||||
declare noalias i8* @malloc(i64) "malloc-like"
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -basic-aa -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -basic-aa -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
; PR11390
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
@ -1,6 +1,6 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -basic-aa -dse -S | FileCheck %s
|
||||
; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -S | FileCheck %s
|
||||
; RUN: opt < %s -basic-aa -dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -enable-dse-memoryssa=false -S | FileCheck %s
|
||||
target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
|
||||
|
||||
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i1) nounwind
|
@ -1,4 +1,4 @@
|
||||
; RUN: opt -dse -S < %s | FileCheck %s
|
||||
; RUN: opt -dse -enable-dse-memoryssa=false -S < %s | FileCheck %s
|
||||
|
||||
; Don't eliminate stores to allocas before tail calls to functions that use
|
||||
; byval. It's correct to mark calls like these as 'tail'. To implement this tail
|
Loading…
x
Reference in New Issue
Block a user