Skip to content

Commit

Permalink
[AIE2P] fix fifo spill ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Stuckmann committed Feb 13, 2025
1 parent 5a06035 commit fb8933c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Target/AIE/aie2p/AIE2PInstrInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1020,8 +1020,8 @@ AIE2PInstrInfo::getSpillPseudoExpandInfo(const MachineInstr &MI) const {
{AIE2P::VST_dmx_sts_fifohl_spill, AIE2P::sub_hi_fifo}};
case AIE2P::VST_PLFR_SPILL:
return {{AIE2P::VST_FIFO_SPILL, AIE2P::sub_fifo},
{AIE2P::ST_dms_sts_spill, AIE2P::sub_ptr},
{AIE2P::ST_dms_sts_spill, AIE2P::sub_avail}};
{AIE2P::ST_dms_sts_spill, AIE2P::sub_avail},
{AIE2P::ST_dms_sts_spill, AIE2P::sub_ptr}};

case AIE2P::VST_DM_SPILL:
return {{AIE2P::VST_CM_SPILL, AIE2P::sub_1024_acc_lo},
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/CodeGen/AIE/aie2p/eliminate-frame-index.mir
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ body: |
; CHECK-NEXT: $p0 = LDA_dms_lda_spill -60, implicit $sp
; CHECK-NEXT: VST_dmx_sts_fifohl_spill $lfl0, -192, implicit $sp
; CHECK-NEXT: VST_dmx_sts_fifohl_spill $lfh0, -128, implicit $sp
; CHECK-NEXT: ST_dms_sts_spill $p0, -64, implicit $sp
; CHECK-NEXT: ST_dms_sts_spill $r24, -60, implicit $sp
; CHECK-NEXT: ST_dms_sts_spill $r24, -64, implicit $sp
; CHECK-NEXT: ST_dms_sts_spill $p0, -60, implicit $sp
$plfr0 = VLDA_PLFR_SPILL %stack.0, implicit $sp
VST_PLFR_SPILL $plfr0, %stack.0, implicit $sp
...
Expand Down Expand Up @@ -480,9 +480,9 @@ body: |
; CHECK-NEXT: $dj0 = MOVXM -2176
; CHECK-NEXT: VST_dmx_sts_fifohl_idx $lfh0, $p1, killed $dj0
; CHECK-NEXT: $dj0 = MOVXM -2112
; CHECK-NEXT: ST_dms_sts_idx $p0, $p1, killed $dj0
; CHECK-NEXT: ST_dms_sts_idx $r24, $p1, killed $dj0
; CHECK-NEXT: $dj0 = MOVXM -2108
; CHECK-NEXT: ST_dms_sts_idx $r24, killed $p1, killed $dj0
; CHECK-NEXT: ST_dms_sts_idx $p0, killed $p1, killed $dj0
renamable $p0 = PseudoFI %stack.0, implicit $sp
ADJCALLSTACKUP 0, 0, implicit-def $sp, implicit $sp
$plfr0 = VLDA_PLFR_SPILL %stack.0, implicit $sp
Expand Down

0 comments on commit fb8933c

Please sign in to comment.