Skip to content

Commit 5d9326a

Browse files
committed
TMP
1 parent e3abad5 commit 5d9326a

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

llvm/lib/Transforms/Scalar/LoopInterchange.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ static cl::list<RuleTy> Profitabilities(
123123
// FIXME: this option exists mainly for a couple of tests that check some
124124
// corner cases that is more difficult to trigger otherwise; these tests should
125125
// be rewritten and this option removed if possible.
126-
static cl::opt<bool> SkipLoopsWithZeroBTC(
127-
"loop-interchange-skip-zero-btc", cl::init(true), cl::Hidden,
128-
cl::desc("Do not consider loops with a backedge taken count of 0"));
126+
//static cl::opt<bool> SkipLoopsWithZeroBTC(
127+
// "loop-interchange-skip-zero-btc", cl::init(true), cl::Hidden,
128+
// cl::desc("Do not consider loops with a backedge taken count of 0"));
129129

130130
#ifndef NDEBUG
131131
static bool noDuplicateRulesAndIgnore(ArrayRef<RuleTy> Rules) {
@@ -438,9 +438,10 @@ static bool isComputableLoopNest(ScalarEvolution *SE,
438438
// A loop with a backedge that isn't taken, e.g. an unconditional branch
439439
// true, isn't really a loop and we don't want to consider it as a
440440
// candidate.
441-
if (ExitCountOuter && SkipLoopsWithZeroBTC && ExitCountOuter->isZero()) {
441+
if (ExitCountOuter && /*SkipLoopsWithZeroBTC && */ExitCountOuter->isZero()) {
442442
LLVM_DEBUG(dbgs() << "The loop back-edge isn't taken, rejecting single "
443443
"iteration loop\n");
444+
LLVM_DEBUG(L->dump());
444445
return false;
445446
}
446447
if (L->getNumBackEdges() != 1) {

llvm/test/Transforms/LoopInterchange/interchanged-loop-nest-4.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; REQUIRES: asserts
2-
; RUN: opt < %s -passes="loop(loop-interchange,loop-interchange)" -cache-line-size=8 -verify-dom-info -verify-loop-info -loop-interchange-skip-zero-btc=false \
2+
; RUN: opt < %s -passes="loop(loop-interchange,loop-interchange)" -cache-line-size=8 -verify-dom-info -verify-loop-info \
33
; RUN: -debug-only=loop-interchange 2>&1 | FileCheck %s
44

55
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

llvm/test/Transforms/LoopInterchange/lcssa-phi-outer-latch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
2-
; RUN: opt < %s -passes=loop-interchange -loop-interchange-skip-zero-btc=false -cache-line-size=64 -verify-dom-info -verify-loop-info -verify-scev -verify-loop-lcssa -S | FileCheck %s
2+
; RUN: opt < %s -passes=loop-interchange -cache-line-size=64 -verify-dom-info -verify-loop-info -verify-scev -verify-loop-lcssa -S | FileCheck %s
33

44
; This test is checking that blocks outer.body and outer.latch, where outer.body is the exit
55
; block of the inner loop and outer.latch the latch of the outer loop, correctly

llvm/test/Transforms/LoopInterchange/pr43176-move-to-new-latch.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt < %s -passes=loop-interchange -cache-line-size=64 -pass-remarks-missed='loop-interchange' -pass-remarks-output=%t -loop-interchange-skip-zero-btc=false -S
2+
; RUN: opt < %s -passes=loop-interchange -cache-line-size=64 -pass-remarks-missed='loop-interchange' -pass-remarks-output=%t -S
33
; RUN: FileCheck --input-file=%t %s
44

55
@b = external dso_local global [5 x i32], align 16

llvm/test/Transforms/LoopInterchange/pr43326.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; RUN: opt < %s -passes=loop-interchange -cache-line-size=64 -pass-remarks-missed='loop-interchange' -pass-remarks-output=%t -S \
2-
; RUN: -loop-interchange-skip-zero-btc=false -verify-dom-info -verify-loop-info -verify-loop-lcssa -stats 2>&1
2+
; RUN: -verify-dom-info -verify-loop-info -verify-loop-lcssa -stats 2>&1
33
; RUN: FileCheck --input-file=%t --check-prefix=REMARKS %s
44

55
@a = global i32 0

0 commit comments

Comments
 (0)