File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1760,7 +1760,6 @@ void GCNPassConfig::addMachineSSAOptimization() {
17601760 }
17611761 addPass (&DeadMachineInstructionElimID);
17621762 addPass (createSIShrinkInstructionsLegacyPass ());
1763- addPass (&SILowerControlFlowLegacyID);
17641763}
17651764
17661765bool GCNPassConfig::addILPOpts () {
@@ -1820,6 +1819,7 @@ void GCNPassConfig::addFastRegAlloc() {
18201819 // FIXME: We have to disable the verifier here because of PHIElimination +
18211820 // TwoAddressInstructions disabling it.
18221821
1822+ insertPass (&PHIEliminationID, &SILowerControlFlowLegacyID);
18231823 insertPass (&TwoAddressInstructionPassID, &SIWholeQuadModeID);
18241824
18251825 TargetPassConfig::addFastRegAlloc ();
@@ -1831,6 +1831,8 @@ void GCNPassConfig::addPreRegAlloc() {
18311831}
18321832
18331833void GCNPassConfig::addOptimizedRegAlloc () {
1834+ insertPass (&PHIEliminationID, &SILowerControlFlowLegacyID);
1835+
18341836 if (EnableDCEInRA)
18351837 insertPass (&DetectDeadLanesID, &DeadMachineInstructionElimID);
18361838
You can’t perform that action at this time.
0 commit comments