forked from OSchip/llvm-project
[AMDGPU] Rename "LDS lowering" pass name.
Rename the name of "LDS lowering" pass from `amdgpu-disable-lower-module-lds` to `amdgpu-enable-lower-module-lds` as later is consistent and reads better. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D100441
This commit is contained in:
parent
4fbe761572
commit
e3070db0f7
|
@ -194,9 +194,9 @@ static cl::opt<bool> EnableStructurizerWorkarounds(
|
|||
cl::Hidden);
|
||||
|
||||
static cl::opt<bool>
|
||||
DisableLowerModuleLDS("amdgpu-disable-lower-module-lds", cl::Hidden,
|
||||
cl::desc("Disable lower module lds pass"),
|
||||
cl::init(false));
|
||||
EnableLowerModuleLDS("amdgpu-enable-lower-module-lds", cl::Hidden,
|
||||
cl::desc("Enable lower module lds pass"),
|
||||
cl::init(true));
|
||||
|
||||
extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUTarget() {
|
||||
// Register the target
|
||||
|
@ -888,7 +888,7 @@ void AMDGPUPassConfig::addIRPasses() {
|
|||
addPass(createAMDGPUOpenCLEnqueuedBlockLoweringPass());
|
||||
|
||||
// Can increase LDS used by kernel so runs before PromoteAlloca
|
||||
if (!DisableLowerModuleLDS)
|
||||
if (EnableLowerModuleLDS)
|
||||
addPass(createAMDGPULowerModuleLDSPass());
|
||||
|
||||
if (TM.getOptLevel() > CodeGenOpt::None) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -amdgpu-disable-lower-module-lds=true -o - %s 2> %t | FileCheck --check-prefix=GFX8 %s
|
||||
; RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -amdgpu-enable-lower-module-lds=false -o - %s 2> %t | FileCheck --check-prefix=GFX8 %s
|
||||
; RUN: FileCheck -check-prefix=ERR %s < %t
|
||||
|
||||
; RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-disable-lower-module-lds=true -o - %s 2> %t | FileCheck --check-prefix=GFX9 %s
|
||||
; RUN: llc -global-isel -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-enable-lower-module-lds=false -o - %s 2> %t | FileCheck --check-prefix=GFX9 %s
|
||||
; RUN: FileCheck -check-prefix=ERR %s < %t
|
||||
|
||||
@lds = internal addrspace(3) global float undef, align 4
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: not --crash llc -march=amdgcn -verify-machineinstrs -amdgpu-disable-lower-module-lds=true < %s 2>&1 | FileCheck -check-prefix=ERROR %s
|
||||
; RUN: not --crash llc -march=amdgcn -verify-machineinstrs -amdgpu-enable-lower-module-lds=false < %s 2>&1 | FileCheck -check-prefix=ERROR %s
|
||||
|
||||
; ERROR: LLVM ERROR: Unsupported expression in static initializer: addrspacecast ([256 x i32] addrspace(3)* @lds.arr to [256 x i32] addrspace(4)*)
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -o - -amdgpu-disable-lower-module-lds=true %s 2> %t | FileCheck -check-prefixes=GFX8 %s
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -o - -amdgpu-enable-lower-module-lds=false %s 2> %t | FileCheck -check-prefixes=GFX8 %s
|
||||
; RUN: FileCheck -check-prefix=ERR %s < %t
|
||||
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -o - -amdgpu-disable-lower-module-lds=true %s 2> %t | FileCheck -check-prefixes=GFX9 %s
|
||||
; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -o - -amdgpu-enable-lower-module-lds=false %s 2> %t | FileCheck -check-prefixes=GFX9 %s
|
||||
; RUN: FileCheck -check-prefix=ERR %s < %t
|
||||
|
||||
@lds = internal addrspace(3) global float undef, align 4
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; RUN: opt -S -disable-promote-alloca-to-vector -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-promote-alloca < %s | FileCheck -check-prefix=IR %s
|
||||
; RUN: llc -disable-promote-alloca-to-vector -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-disable-lower-module-lds=true < %s | FileCheck -check-prefix=ASM %s
|
||||
; RUN: llc -disable-promote-alloca-to-vector -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -amdgpu-enable-lower-module-lds=false < %s | FileCheck -check-prefix=ASM %s
|
||||
|
||||
target datalayout = "A5"
|
||||
|
||||
|
|
Loading…
Reference in New Issue