Skip to content

Commit 7f68bce

Browse files
Martien de Jongmartien-de-jong
authored andcommitted
[AIE] Remove list scheduler override from aie2 and aie2p
1 parent 1f9aa29 commit 7f68bce

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

llvm/lib/Target/AIE/AIE2Subtarget.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,6 @@ class AIE2Subtarget : public AIE2GenSubtargetInfo, public AIEBaseSubtarget {
7474
return AIEBaseSubtarget::getCriticalPathLimitImpl();
7575
}
7676

77-
CodeGenOptLevel getOptLevelToEnablePostRAScheduler() const override {
78-
// AIEngine V2 hack: we currently rely on the post-RA scheduler to insert
79-
// NoOps for correcteness, make sure it runs even when the opt level is -O0.
80-
return CodeGenOptLevel::None;
81-
}
82-
8377
void overrideSchedPolicy(MachineSchedPolicy &Policy,
8478
unsigned NumRegionInstrs) const override {
8579
AIEBaseSubtarget::overrideSchedPolicyBase(Policy, NumRegionInstrs);

llvm/lib/Target/AIE/aie2p/AIE2PSubtarget.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
7-
// (c) Copyright 2024 Advanced Micro Devices, Inc. or its affiliates
7+
// (c) Copyright 2024-2025 Advanced Micro Devices, Inc. or its affiliates
88
//
99
//===----------------------------------------------------------------------===//
1010
//
@@ -68,12 +68,6 @@ class AIE2PSubtarget : public AIE2PGenSubtargetInfo, public AIEBaseSubtarget {
6868
return AIEBaseSubtarget::getCriticalPathLimitImpl();
6969
}
7070

71-
CodeGenOptLevel getOptLevelToEnablePostRAScheduler() const override {
72-
// AIEngine hack: we currently rely on the post-RA scheduler to insert
73-
// NoOps for correcteness, make sure it runs even when the opt level is -O0.
74-
return CodeGenOptLevel::None;
75-
}
76-
7771
void overrideSchedPolicy(MachineSchedPolicy &Policy,
7872
unsigned NumRegionInstrs) const override {
7973
AIEBaseSubtarget::overrideSchedPolicyBase(Policy, NumRegionInstrs);

0 commit comments

Comments
 (0)