aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-07-15 20:47:31 -0700
committerGitHub <noreply@github.com>2025-07-15 20:47:31 -0700
commit7da8f7394f8f0847dd1a29a9fbab5043fe307bae (patch)
tree8c54b32b48c45703ef6f041a717b26770a69e234 /llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
parent228c45f13dc92546661b6825b7b32c3808b0d2eb (diff)
downloadllvm-7da8f7394f8f0847dd1a29a9fbab5043fe307bae.zip
llvm-7da8f7394f8f0847dd1a29a9fbab5043fe307bae.tar.gz
llvm-7da8f7394f8f0847dd1a29a9fbab5043fe307bae.tar.bz2
[AMDGPU] Remove an unnecessary cast (NFC) (#148868)
STI is already of const GCNSubtarget *.
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
index 67ad286..75ce67c 100644
--- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
@@ -42,7 +42,7 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const Function &F,
PrivateSegmentWaveByteOffset(false), WorkItemIDX(false),
WorkItemIDY(false), WorkItemIDZ(false), ImplicitArgPtr(false),
GITPtrHigh(0xffffffff), HighBitsOf32BitAddress(0) {
- const GCNSubtarget &ST = *static_cast<const GCNSubtarget *>(STI);
+ const GCNSubtarget &ST = *STI;
FlatWorkGroupSizes = ST.getFlatWorkGroupSizes(F);
WavesPerEU = ST.getWavesPerEU(F);
MaxNumWorkGroups = ST.getMaxNumWorkGroups(F);