From 169b9e9db5900514a48ca98335251cc5d94255cf Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Thu, 10 Oct 2019 13:34:31 +0000 Subject: [PATCH] Revert "[AMDGPU] Run `unreachable-mbb-elimination` after isel to clean up PHIs." Summary: This has been superseded by "[AMDGPU]: PHI Elimination hooks added for custom COPY insertion." This reverts the code changes from commit 53f967f2bdb6aa7b08596880c3689d1ecad6f0ff but keeps the test case. Reviewers: hliao, arsenm, tpr, dstuttard Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68769 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374347 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp b/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp index 334db7c3125..e8cf77161a1 100644 --- a/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp +++ b/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp @@ -885,9 +885,6 @@ bool GCNPassConfig::addInstSelector() { addPass(createSILowerI1CopiesPass()); addPass(createSIFixupVectorISelPass()); addPass(createSIAddIMGInitPass()); - // FIXME: Remove this once the phi on CF_END is cleaned up by either removing - // LCSSA or other ways. - addPass(&UnreachableMachineBlockElimID); return false; }