Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIE2P] Fix modeling of resource conflicts in the scheduling model
Browse files Browse the repository at this point in the history
katerynamuts committed Jan 29, 2025
1 parent 9b6736e commit c458323
Showing 2 changed files with 816 additions and 777 deletions.
1,562 changes: 785 additions & 777 deletions llvm/lib/Target/AIE/aie2p/AIE2PGenSchedule.td

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions llvm/test/CodeGen/AIE/aie2p/schedule/resource/ld_fifo_wa_port.mir
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
#
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# (c) Copyright 2025 Advanced Micro Devices, Inc. or its affiliates
# RUN: llc -march=aie2p -run-pass=postmisched %s -o - | FileCheck %s

# The test checks LD_FIFO_WA_PORT resource which is accessed
# by VLDA_FILL_512 at cycle 7 and by VMOV_alu_mv_mv_x at cycle 2.
---
name: E7_VLDA_FILL_512_E2_VMOV_x
alignment: 16
tracksRegLiveness: true
body: |
bb.0.entry:
liveins: $p1, $lf0, $r25, $x9
; CHECK-LABEL: name: E7_VLDA_FILL_512_E2_VMOV_x
; CHECK: liveins: $p1, $lf0, $r25, $x9
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: $p1, $lf0, $r25 = VLDA_FILL_512 killed $p1, killed $lf0, killed $r25
; CHECK-NEXT: NOP
; CHECK-NEXT: NOP
; CHECK-NEXT: NOP
; CHECK-NEXT: $lfl1 = VMOV_alu_mv_mv_x killed $x9
; CHECK-NEXT: NOP
; CHECK-NEXT: NOP
$p1, $lf0, $r25 = VLDA_FILL_512 $p1, $lf0, $r25
$lfl1 = VMOV_alu_mv_mv_x $x9
...

0 comments on commit c458323

Please sign in to comment.