Skip to content

Commit

Permalink
Made comment clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinjohnraj committed Oct 4, 2023
1 parent 7a21ee3 commit 5d058ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
case TargetOpcode::G_SEXT_INREG:
return selectSExtInreg(MI, MIB);
case TargetOpcode::G_FRAME_INDEX: {
// FIXME: We want to replace this with tablegen code that matches for
// FrameAddrRegImm
// TODO: We may want to replace this code with the SelectionDAG patterns,
// which fail to get imported because it uses FrameAddrRegImm, which is a
// ComplexPattern
Register DstReg = MI.getOperand(0).getReg();

if (!MRI.getType(DstReg).isPointer())
Expand Down

0 comments on commit 5d058ee

Please sign in to comment.