[llvm-branch-commits] [llvm] AMDGPU: Fix tracking subreg defs when folding through reg_sequence (PR #140608)

Jay Foad via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed May 28 02:11:54 PDT 2025


================
@@ -380,7 +477,8 @@ bool SIFoldOperandsImpl::canUseImmWithOpSel(FoldCandidate &Fold) const {
   return true;
 }
 
-bool SIFoldOperandsImpl::tryFoldImmWithOpSel(FoldCandidate &Fold) const {
+bool SIFoldOperandsImpl::tryFoldImmWithOpSel(FoldCandidate &Fold,
+                                             int64_t ImmVal) const {
----------------
jayfoad wrote:

Needs a comment explaining the `ImmVal` argument. Is it different from `Fold.getEffectiveImmVal()`?

https://github.com/llvm/llvm-project/pull/140608


More information about the llvm-branch-commits mailing list