[llvm] d0117b7 - [RemoveDIs] Copy debug mode to new functions in amdgpu-lower-buffer-fat-pointers
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 07:35:05 PDT 2024
Author: Orlando Cazalet-Hyams
Date: 2024-03-10T20:51:39Z
New Revision: d0117b71193787ebfd92d96a4ecc261f0aaeac86
URL: https://github.com/llvm/llvm-project/commit/d0117b71193787ebfd92d96a4ecc261f0aaeac86
DIFF: https://github.com/llvm/llvm-project/commit/d0117b71193787ebfd92d96a4ecc261f0aaeac86.diff
LOG: [RemoveDIs] Copy debug mode to new functions in amdgpu-lower-buffer-fat-pointers
Fixes failing tests after https://github.com/llvm/llvm-project/pull/84308
LLVM :: CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces-vectors.ll
LLVM :: CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces.ll
LLVM :: CodeGen/AMDGPU/lower-buffer-fat-pointers-calls.ll
LLVM :: CodeGen/AMDGPU/lower-buffer-fat-pointers-constants.ll
LLVM :: CodeGen/AMDGPU/lower-buffer-fat-pointers-pointer-ops.ll
LLVM :: CodeGen/AMDGPU/pal-metadata-3.0.ll
Buildbots: https://lab.llvm.org/buildbot/#/builders/121/builds/39855
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
index 544231cad28016..2cfd1de93a04f9 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
@@ -1841,6 +1841,7 @@ static Function *moveFunctionAdaptingType(Function *OldF, FunctionType *NewTy,
bool IsIntrinsic = OldF->isIntrinsic();
Function *NewF =
Function::Create(NewTy, OldF->getLinkage(), OldF->getAddressSpace());
+ NewF->IsNewDbgInfoFormat = OldF->IsNewDbgInfoFormat;
NewF->copyAttributesFrom(OldF);
NewF->copyMetadata(OldF, 0);
NewF->takeName(OldF);
More information about the llvm-commits
mailing list