Skip to content

Commit 73ef21e

Browse files
committed
[AIEX] Make the decision to accept supplied II stronger
1 parent d1a8b6d commit 73ef21e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AIE/AIEBasePipelinerLoopInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,13 +756,13 @@ bool ZeroOverheadLoop::preferPostPipeliner(SMSchedule &SMS) {
756756
// job on multi-stage live-ranges without spilling or moving.
757757

758758
// PostPipeliner can do nothing without tripcount > 1
759-
if (MinTripCount <= 1) {
759+
if (MinTripCount <= 1 || HasIIPragma) {
760760
return false;
761761
}
762762

763763
unsigned NS = SMS.getMaxStageCount() + 1;
764764
int II = SMS.getInitiationInterval();
765-
if (!HasIIPragma && NS > LoopMaxStageCount && II < PostPipelinerCutoff) {
765+
if (NS > LoopMaxStageCount && II < PostPipelinerCutoff) {
766766
LLVM_DEBUG(dbgs() << "PLI: Leaving high stage count for PostPipeliner\n");
767767
return true;
768768
}

0 commit comments

Comments
 (0)