[llvm] def2e4c - [AMDGPU] Simplify GCNPassConfig::addOptimizedRegAlloc. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 07:56:27 PDT 2020
Author: Jay Foad
Date: 2020-06-17T15:56:15+01:00
New Revision: def2e4c47fab7165bf79305182e8e10a0236bc30
URL: https://github.com/llvm/llvm-project/commit/def2e4c47fab7165bf79305182e8e10a0236bc30
DIFF: https://github.com/llvm/llvm-project/commit/def2e4c47fab7165bf79305182e8e10a0236bc30.diff
LOG: [AMDGPU] Simplify GCNPassConfig::addOptimizedRegAlloc. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index 36c0096a47fe..5dff9a7fad35 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -990,12 +990,9 @@ void GCNPassConfig::addFastRegAlloc() {
}
void GCNPassConfig::addOptimizedRegAlloc() {
- if (OptExecMaskPreRA) {
+ if (OptExecMaskPreRA)
insertPass(&MachineSchedulerID, &SIOptimizeExecMaskingPreRAID);
- insertPass(&SIOptimizeExecMaskingPreRAID, &SIFormMemoryClausesID);
- } else {
- insertPass(&MachineSchedulerID, &SIFormMemoryClausesID);
- }
+ insertPass(&MachineSchedulerID, &SIFormMemoryClausesID);
// This must be run immediately after phi elimination and before
// TwoAddressInstructions, otherwise the processing of the tied operand of
More information about the llvm-commits
mailing list