aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2020-06-17 15:55:58 +0100
committerJay Foad <jay.foad@amd.com>2020-06-17 15:56:15 +0100
commitdef2e4c47fab7165bf79305182e8e10a0236bc30 (patch)
treef9542ebc4f74bb967546c1d233ad7762ceffdefc
parente584abfcd5001c4b1b0c8ed128f4834f17995803 (diff)
downloadllvm-def2e4c47fab7165bf79305182e8e10a0236bc30.zip
llvm-def2e4c47fab7165bf79305182e8e10a0236bc30.tar.gz
llvm-def2e4c47fab7165bf79305182e8e10a0236bc30.tar.bz2
[AMDGPU] Simplify GCNPassConfig::addOptimizedRegAlloc. NFC.
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index 36c0096..5dff9a7 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