[llvm] [BPF] Remove getMaxNumArgs() from BPFTargetTransformInfo (PR #198223)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 17 17:51:05 PDT 2026
https://github.com/yonghong-song created https://github.com/llvm/llvm-project/pull/198223
The function getMaxNumArgs() hardcoded the maximum number of function arguments to 5. LLVM now supports more than 5 arguments with stack argument support. Remove this leftover.
>From 35c602cab969ba0af124e066beb61536646b915d Mon Sep 17 00:00:00 2001
From: Yonghong Song <yonghong.song at linux.dev>
Date: Sun, 17 May 2026 17:38:53 -0700
Subject: [PATCH] [BPF] Remove getMaxNumArgs() from BPFTargetTransformInfo
The function getMaxNumArgs() hardcoded the maximum number of function
arguments to 5. LLVM now supports more than 5 arguments with stack
argument support. Remove this leftover.
---
llvm/lib/Target/BPF/BPFTargetTransformInfo.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/llvm/lib/Target/BPF/BPFTargetTransformInfo.h b/llvm/lib/Target/BPF/BPFTargetTransformInfo.h
index d7b2ceff105c9..97f7fc62166d6 100644
--- a/llvm/lib/Target/BPF/BPFTargetTransformInfo.h
+++ b/llvm/lib/Target/BPF/BPFTargetTransformInfo.h
@@ -79,8 +79,6 @@ class BPFTTIImpl final : public BasicTTIImplBase<BPFTTIImpl> {
Options.MaxNumLoads = TLI->getMaxExpandSizeMemcmp(OptSize);
return Options;
}
-
- unsigned getMaxNumArgs() const override { return 5; }
};
} // end namespace llvm
More information about the llvm-commits
mailing list