[PATCH] D154220: [AMDGPU][Codegen] Clean up legalizeOpWithMove().
Ivan Kosarev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 30 08:48:33 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9d8171f8c49d: [AMDGPU][Codegen] Clean up legalizeOpWithMove(). (authored by kosarev).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154220/new/
https://reviews.llvm.org/D154220
Files:
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Index: llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -5022,12 +5022,6 @@
Opcode = (Size == 64) ? AMDGPU::S_MOV_B64 : AMDGPU::S_MOV_B32;
const TargetRegisterClass *VRC = RI.getEquivalentVGPRClass(RC);
- const TargetRegisterClass *VRC64 = RI.getVGPR64Class();
- if (RI.getCommonSubClass(VRC64, VRC))
- VRC = VRC64;
- else
- VRC = &AMDGPU::VGPR_32RegClass;
-
Register Reg = MRI.createVirtualRegister(VRC);
DebugLoc DL = MBB->findDebugLoc(I);
BuildMI(*MI.getParent(), I, DL, get(Opcode), Reg).add(MO);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154220.536279.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230630/9bdd20f9/attachment.bin>
More information about the llvm-commits
mailing list