[llvm] 432eda5 - Remove dead assignments
Luke Drummond via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 24 04:31:58 PDT 2023
Author: Martin
Date: 2023-08-24T12:30:27+01:00
New Revision: 432eda5cc5f7cef34a20bea6b1b6b49ef2ba8226
URL: https://github.com/llvm/llvm-project/commit/432eda5cc5f7cef34a20bea6b1b6b49ef2ba8226
DIFF: https://github.com/llvm/llvm-project/commit/432eda5cc5f7cef34a20bea6b1b6b49ef2ba8226.diff
LOG: Remove dead assignments
Dst is never used after creating the type making
these assignments dead
Reviewed by: arsenm
Differential Revision: https://reviews.llvm.org/D158610
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
index 72ff2029b81112..332ab0e472d5ee 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
@@ -6219,13 +6219,11 @@ bool AMDGPULegalizerInfo::legalizeSBufferLoad(
// Handle needing to s.buffer.load() a p8 value.
if (hasBufferRsrcWorkaround(Ty)) {
Ty = castBufferRsrcFromV4I32(MI, B, *B.getMRI(), 0);
- Dst = MI.getOperand(0).getReg();
B.setInsertPt(B.getMBB(), MI);
}
if (shouldBitcastLoadStoreType(ST, Ty, LLT::scalar(Size))) {
Ty = getBitcastRegisterType(Ty);
Helper.bitcastDst(MI, Ty, 0);
- Dst = MI.getOperand(0).getReg();
B.setInsertPt(B.getMBB(), MI);
}
More information about the llvm-commits
mailing list