Skip to content

Commit

Permalink
Commit suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
  • Loading branch information
spavloff and arsenm authored Oct 14, 2024
1 parent f083469 commit ba9842f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/ARM/ARMInstructionSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ bool ARMInstructionSelector::select(MachineInstr &I) {
MachineInstr *Ptr = MRI.getVRegDef(PtrReg);
if (Ptr->getOpcode() == TargetOpcode::G_CONSTANT_POOL) {
const MachineOperand &Index = Ptr->getOperand(1);
unsigned Opcode = (Subtarget->isThumb()) ? ARM::tLDRpci : ARM::LDRcp;
unsigned Opcode = Subtarget->isThumb() ? ARM::tLDRpci : ARM::LDRcp;

auto Instr = BuildMI(MBB, I, I.getDebugLoc(), TII.get(Opcode))
.addDef(Reg)
Expand Down

0 comments on commit ba9842f

Please sign in to comment.