[llvm] [RISCV][GISel] Remove source constraint from selectCopy and use it fo… (PR #67207)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 22 17:38:15 PDT 2023
================
@@ -271,37 +270,25 @@ const TargetRegisterClass *RISCVInstructionSelector::getRegClassForTypeOnBank(
bool RISCVInstructionSelector::selectCopy(MachineInstr &MI,
MachineRegisterInfo &MRI) const {
Register DstReg = MI.getOperand(0).getReg();
- Register SrcReg = MI.getOperand(1).getReg();
- if (Register::isPhysicalRegister(SrcReg) &&
- Register::isPhysicalRegister(DstReg))
+ if (DstReg.isPhysical())
----------------
topperc wrote:
I believe they are supposed to return true for success and false for failure.
https://github.com/llvm/llvm-project/pull/67207
More information about the llvm-commits
mailing list