[llvm] [AMDGPU] Filter candidates of LiveRegOptimizer for profitable cases (PR #124624)
Jeffrey Byrnes via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 11:53:10 PST 2025
================
@@ -259,6 +297,9 @@ bool LiveRegOptimizer::optimizeLiveType(
if (!shouldReplace(II->getType()))
continue;
+ if (!shouldReplaceBasedOnOp(II))
----------------
jrbyrnes wrote:
You should be checking the users of II -- including walking through PHI nodes.
https://github.com/llvm/llvm-project/pull/124624
More information about the llvm-commits
mailing list