[llvm] r195031 - R600: Enable the IR structurizer by default
Tom Stellard
thomas.stellard at amd.com
Mon Nov 18 11:43:45 PST 2013
Author: tstellar
Date: Mon Nov 18 13:43:44 2013
New Revision: 195031
URL: http://llvm.org/viewvc/llvm-project?rev=195031&view=rev
Log:
R600: Enable the IR structurizer by default
Modified:
llvm/trunk/lib/Target/R600/AMDGPU.td
llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp
llvm/trunk/lib/Target/R600/AMDGPUTargetMachine.cpp
llvm/trunk/test/CodeGen/R600/jump-address.ll
llvm/trunk/test/CodeGen/R600/predicates.ll
llvm/trunk/test/CodeGen/R600/structurize.ll
Modified: llvm/trunk/lib/Target/R600/AMDGPU.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPU.td?rev=195031&r1=195030&r2=195031&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPU.td (original)
+++ llvm/trunk/lib/Target/R600/AMDGPU.td Mon Nov 18 13:43:44 2013
@@ -21,10 +21,10 @@ def FeatureDumpCode : SubtargetFeature <
"true",
"Dump MachineInstrs in the CodeEmitter">;
-def FeatureIRStructurizer : SubtargetFeature <"enable-irstructurizer",
+def FeatureIRStructurizer : SubtargetFeature <"disable-irstructurizer",
"EnableIRStructurizer",
- "true",
- "Enable IR Structurizer">;
+ "false",
+ "Disable IR Structurizer">;
// Target features
Modified: llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp?rev=195031&r1=195030&r2=195031&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUSubtarget.cpp Mon Nov 18 13:43:44 2013
@@ -36,7 +36,7 @@ AMDGPUSubtarget::AMDGPUSubtarget(StringR
Gen = AMDGPUSubtarget::R600;
FP64 = false;
CaymanISA = false;
- EnableIRStructurizer = false;
+ EnableIRStructurizer = true;
EnableIfCvt = true;
ParseSubtargetFeatures(GPU, FS);
DevName = GPU;
Modified: llvm/trunk/lib/Target/R600/AMDGPUTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUTargetMachine.cpp?rev=195031&r1=195030&r2=195031&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUTargetMachine.cpp Mon Nov 18 13:43:44 2013
@@ -125,8 +125,7 @@ bool
AMDGPUPassConfig::addPreISel() {
const AMDGPUSubtarget &ST = TM->getSubtarget<AMDGPUSubtarget>();
addPass(createFlattenCFGPass());
- if (ST.IsIRStructurizerEnabled() ||
- ST.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS)
+ if (ST.IsIRStructurizerEnabled())
addPass(createStructurizeCFGPass());
if (ST.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) {
addPass(createSinkingPass());
Modified: llvm/trunk/test/CodeGen/R600/jump-address.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/jump-address.ll?rev=195031&r1=195030&r2=195031&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/R600/jump-address.ll (original)
+++ llvm/trunk/test/CodeGen/R600/jump-address.ll Mon Nov 18 13:43:44 2013
@@ -1,6 +1,6 @@
;RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
-; CHECK: JUMP @5
+; CHECK: JUMP @3
; CHECK: EXPORT
; CHECK-NOT: EXPORT
Modified: llvm/trunk/test/CodeGen/R600/predicates.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/predicates.ll?rev=195031&r1=195030&r2=195031&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/R600/predicates.ll (original)
+++ llvm/trunk/test/CodeGen/R600/predicates.ll Mon Nov 18 13:43:44 2013
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
+; RUN: llc < %s -march=r600 -mattr=disable-irstructurizer -mcpu=redwood | FileCheck %s
; These tests make sure the compiler is optimizing branches using predicates
; when it is legal to do so.
Modified: llvm/trunk/test/CodeGen/R600/structurize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/R600/structurize.ll?rev=195031&r1=195030&r2=195031&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/R600/structurize.ll (original)
+++ llvm/trunk/test/CodeGen/R600/structurize.ll Mon Nov 18 13:43:44 2013
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=r600 -mcpu=redwood | FileCheck %s
+; RUN: llc < %s -march=r600 -mcpu=redwood -mattr=disable-irstructurizer | FileCheck %s
; Test case for a crash in the AMDILCFGStructurizer from a CFG like this:
;
; entry
More information about the llvm-commits
mailing list