[PATCH] D157711: [AMDGPU] Clear BreakPhiNodesCache in-between functions
Pierre van Houtryve via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 11 06:21:01 PDT 2023
Pierre-vh created this revision.
Pierre-vh added a reviewer: arsenm.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
Pierre-vh requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
Otherwise stale pointers pollute the cache and
when a dead PHI's memory is reused for another PHI, we can get a false positive hit in the cache.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157711
Files:
llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
Index: llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
+++ 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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157711.549364.patch
Type: text/x-patch
Size: 421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230811/cae77047/attachment.bin>
More information about the llvm-commits
mailing list