diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp --- a/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp @@ -319,6 +319,7 @@ } // end anonymous namespace bool AMDGPUCodeGenPrepareImpl::run(Function &F) { + BreakPhiNodesCache.clear(); bool MadeChange = false; Function::iterator NextBB;