Skip to content

Commit 5c434fe

Browse files
committed
ARM: Handle vldrh and vstrh in stack access hooks
This is to help avoid regressions in a future regalloc patch. I do not see the vstrh case appear in tests. There also appear to be other cases unhandled here, like LDRBi12.
1 parent f334db9 commit 5c434fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,6 +1330,7 @@ Register ARMBaseInstrInfo::isStoreToStackSlot(const MachineInstr &MI,
13301330
case ARM::tSTRspi:
13311331
case ARM::VSTRD:
13321332
case ARM::VSTRS:
1333+
case ARM::VSTRH:
13331334
case ARM::VSTR_P0_off:
13341335
case ARM::VSTR_FPSCR_NZCVQC_off:
13351336
case ARM::MVE_VSTRWU32:
@@ -1588,6 +1589,7 @@ Register ARMBaseInstrInfo::isLoadFromStackSlot(const MachineInstr &MI,
15881589
case ARM::tLDRspi:
15891590
case ARM::VLDRD:
15901591
case ARM::VLDRS:
1592+
case ARM::VLDRH:
15911593
case ARM::VLDR_P0_off:
15921594
case ARM::VLDR_FPSCR_NZCVQC_off:
15931595
case ARM::MVE_VLDRWU32:

0 commit comments

Comments
 (0)