[llvm] 70d9c62 - AMDGPU: Don't need pointer bitcast in AMDGPULowerKernelArguments
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 29 12:11:36 PDT 2023
Author: Matt Arsenault
Date: 2023-04-29T15:11:31-04:00
New Revision: 70d9c62f54a5b85b5be96ecc770f27547685d06c
URL: https://github.com/llvm/llvm-project/commit/70d9c62f54a5b85b5be96ecc770f27547685d06c
DIFF: https://github.com/llvm/llvm-project/commit/70d9c62f54a5b85b5be96ecc770f27547685d06c.diff
LOG: AMDGPU: Don't need pointer bitcast in AMDGPULowerKernelArguments
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
index 90aeb4a4d1da..eb57203c6aee 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
@@ -110,8 +110,8 @@ bool AMDGPULowerKernelArguments::runOnFunction(Function &F) {
Builder.getInt8Ty(), KernArgSegment, EltOffset,
Arg.getName() + ".byval.kernarg.offset");
- Value *CastOffsetPtr = Builder.CreatePointerBitCastOrAddrSpaceCast(
- ArgOffsetPtr, Arg.getType());
+ Value *CastOffsetPtr =
+ Builder.CreateAddrSpaceCast(ArgOffsetPtr, Arg.getType());
Arg.replaceAllUsesWith(CastOffsetPtr);
continue;
}
More information about the llvm-commits
mailing list