Skip to content

Commit 5ae6804

Browse files
committed
Revert "Disable ReplaceLDS pass, patch up tests to match"
This reverts commit 50ad347. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D109062
1 parent d8afa57 commit 5ae6804

19 files changed

+23
-18
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static cl::opt<bool> EnableStructurizerWorkarounds(
293293

294294
static cl::opt<bool> EnableLDSReplaceWithPointer(
295295
"amdgpu-enable-lds-replace-with-pointer",
296-
cl::desc("Enable LDS replace with pointer pass"), cl::init(false),
296+
cl::desc("Enable LDS replace with pointer pass"), cl::init(true),
297297
cl::Hidden);
298298

299299
static cl::opt<bool, true> EnableLowerModuleLDS(

llvm/test/CodeGen/AMDGPU/llc-pipeline.ll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
; GCN-O0-NEXT: Inliner for always_inline functions
4343
; GCN-O0-NEXT: A No-Op Barrier Pass
4444
; GCN-O0-NEXT: Lower OpenCL enqueued blocks
45+
; GCN-O0-NEXT: Replace within non-kernel function use of LDS with pointer
4546
; GCN-O0-NEXT: Lower uses of LDS variables from non-kernel functions
4647
; GCN-O0-NEXT: FunctionPass Manager
4748
; GCN-O0-NEXT: Expand Atomic instructions
@@ -177,6 +178,7 @@
177178
; GCN-O1-NEXT: Inliner for always_inline functions
178179
; GCN-O1-NEXT: A No-Op Barrier Pass
179180
; GCN-O1-NEXT: Lower OpenCL enqueued blocks
181+
; GCN-O1-NEXT: Replace within non-kernel function use of LDS with pointer
180182
; GCN-O1-NEXT: Lower uses of LDS variables from non-kernel functions
181183
; GCN-O1-NEXT: FunctionPass Manager
182184
; GCN-O1-NEXT: Infer address spaces
@@ -428,6 +430,7 @@
428430
; GCN-O1-OPTS-NEXT: Inliner for always_inline functions
429431
; GCN-O1-OPTS-NEXT: A No-Op Barrier Pass
430432
; GCN-O1-OPTS-NEXT: Lower OpenCL enqueued blocks
433+
; GCN-O1-OPTS-NEXT: Replace within non-kernel function use of LDS with pointer
431434
; GCN-O1-OPTS-NEXT: Lower uses of LDS variables from non-kernel functions
432435
; GCN-O1-OPTS-NEXT: FunctionPass Manager
433436
; GCN-O1-OPTS-NEXT: Infer address spaces
@@ -712,6 +715,7 @@
712715
; GCN-O2-NEXT: Inliner for always_inline functions
713716
; GCN-O2-NEXT: A No-Op Barrier Pass
714717
; GCN-O2-NEXT: Lower OpenCL enqueued blocks
718+
; GCN-O2-NEXT: Replace within non-kernel function use of LDS with pointer
715719
; GCN-O2-NEXT: Lower uses of LDS variables from non-kernel functions
716720
; GCN-O2-NEXT: FunctionPass Manager
717721
; GCN-O2-NEXT: Infer address spaces
@@ -998,6 +1002,7 @@
9981002
; GCN-O3-NEXT: Inliner for always_inline functions
9991003
; GCN-O3-NEXT: A No-Op Barrier Pass
10001004
; GCN-O3-NEXT: Lower OpenCL enqueued blocks
1005+
; GCN-O3-NEXT: Replace within non-kernel function use of LDS with pointer
10011006
; GCN-O3-NEXT: Lower uses of LDS variables from non-kernel functions
10021007
; GCN-O3-NEXT: FunctionPass Manager
10031008
; GCN-O3-NEXT: Infer address spaces

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-diamond-shape.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-selected_functions.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-to-declare-only-func.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-global-scope-use.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-inline-asm-call.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-kernel-only-used-lds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION ;
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-not-reachable-lds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION ;
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-small-lds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION ;
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-diamond-shape.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-selected_functions.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-signature-match.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-split-entry-bb-after-alloca.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-multiple-lds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-same-lds.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr1.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr2.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
; There is one lds global defined here, and this lds is used within a single non-kernel

llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-phi-inst.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer -amdgpu-enable-lds-replace-with-pointer=true < %s | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -amdgpu-replace-lds-use-with-pointer < %s | FileCheck %s
22

33
; DESCRIPTION:
44
;

0 commit comments

Comments
 (0)