@@ -460,11 +460,6 @@ static cl::opt<std::string>
460460 cl::desc (" Select custom AMDGPU scheduling strategy." ),
461461 cl::Hidden, cl::init(" " ));
462462
463- static cl::opt<std::string>
464- AMDGPUPostRADirection (" amdgpu-post-ra-direction" ,
465- cl::desc (" Select custom AMDGPU postRA direction." ),
466- cl::Hidden, cl::init(" " ));
467-
468463static cl::opt<bool > EnableRewritePartialRegUses (
469464 " amdgpu-enable-rewrite-partial-reg-uses" ,
470465 cl::desc (" Enable rewrite partial reg uses pass" ), cl::init(true ),
@@ -1158,29 +1153,6 @@ GCNTargetMachine::createMachineScheduler(MachineSchedContext *C) const {
11581153
11591154ScheduleDAGInstrs *
11601155GCNTargetMachine::createPostMachineScheduler (MachineSchedContext *C) const {
1161- if (PostRADirection.getNumOccurrences () == 0 ) {
1162- Attribute PostRADirectionAttr =
1163- C->MF ->getFunction ().getFnAttribute (" amdgpu-post-ra-direction" );
1164-
1165- if (PostRADirectionAttr.isValid ()) {
1166- StringRef PostRADirectionStr = PostRADirectionAttr.getValueAsString ();
1167- if (PostRADirectionStr == " topdown" )
1168- PostRADirection = MISched::TopDown;
1169- else if (PostRADirectionStr == " bottomup" )
1170- PostRADirection = MISched::BottomUp;
1171- else if (PostRADirectionStr == " bidirectional" )
1172- PostRADirection = MISched::Bidirectional;
1173- else {
1174- PostRADirection = MISched::Unspecified;
1175- DiagnosticInfoOptimizationFailure Diag (
1176- C->MF ->getFunction (), C->MF ->getFunction ().getSubprogram (),
1177- Twine (" invalid value for postRa direction attribute: '" ) +
1178- PostRADirectionStr);
1179- C->MF ->getFunction ().getContext ().diagnose (Diag);
1180- }
1181- }
1182- }
1183-
11841156 ScheduleDAGMI *DAG =
11851157 new GCNPostScheduleDAGMILive (C, std::make_unique<PostGenericScheduler>(C),
11861158 /* RemoveKillFlags=*/ true );
0 commit comments