[llvm] [AMDGPU] In instruction selector, allow copy from physical reg to s1 (PR #96157)
Jun Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 14:26:45 PDT 2024
================
@@ -130,6 +158,10 @@ bool AMDGPUInstructionSelector::selectCOPY(MachineInstr &I) const {
Register DstReg = Dst.getReg();
Register SrcReg = Src.getReg();
+ bool validPhyToRCC = false;
+ if (isCopyPhysicalToVCC(DstReg, SrcReg, *MRI, validPhyToRCC))
+ return validPhyToRCC;
+
if (isVCC(DstReg, *MRI)) {
----------------
jwanggit86 wrote:
Are you suggesting that an overloaded `isVCC()` should be created with an extra parameter? But where do you call the new version? Replace the call on line 165? Or place it before line 165?
https://github.com/llvm/llvm-project/pull/96157
More information about the llvm-commits
mailing list