@@ -2158,7 +2158,7 @@ class LLVM_ABI TargetInstrInfo : public MCInstrInfo {
21582158    return  TargetOpcode::COPY;
21592159  }
21602160
2161-   // / During PHI elimination  lets target to make necessary checks and
2161+   // / During PHI eleimination  lets target to make necessary checks and
21622162  // / insert the copy to the PHI destination register in a target specific
21632163  // / manner.
21642164  virtual  MachineInstr *createPHIDestinationCopy (
@@ -2168,7 +2168,7 @@ class LLVM_ABI TargetInstrInfo : public MCInstrInfo {
21682168        .addReg (Src);
21692169  }
21702170
2171-   // / During PHI elimination  lets target to make necessary checks and
2171+   // / During PHI eleimination  lets target to make necessary checks and
21722172  // / insert the copy to the PHI destination register in a target specific
21732173  // / manner.
21742174  virtual  MachineInstr *createPHISourceCopy (MachineBasicBlock &MBB,
@@ -2180,17 +2180,6 @@ class LLVM_ABI TargetInstrInfo : public MCInstrInfo {
21802180        .addReg (Src, 0 , SrcSubReg);
21812181  }
21822182
2183-   // / During PHI elimination lets target to decide if two phis can use the
2184-   // / same register \p Reg when they have the same rhs. Register \p Reg has
2185-   // / been used for the first phi and \p PHIReg is the DestReg of the second
2186-   // / Phi. This function is to check if the second phi can reuse \p Reg as
2187-   // / its temporary register.
2188-   // / The default is to allow reuse.
2189-   virtual  bool  allowPHIReuse (Register Reg, Register PHIReg,
2190-                              const  MachineFunction &MF) const  {
2191-     return  true ;
2192-   }
2193- 
21942183  // / Returns a \p outliner::OutlinedFunction struct containing target-specific
21952184  // / information for a set of outlining candidates. Returns std::nullopt if the
21962185  // / candidates are not suitable for outlining. \p MinRepeats is the minimum
0 commit comments