Skip to content

Commit c518925

Browse files
author
Brian Gaeke
committed
Split out -disable-codegen into -disable-llc and -disable-jit.
llvm-svn: 15530
1 parent 72b2a27 commit c518925

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

llvm/utils/NightlyTest.pl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
# -release Build an LLVM Release version
2626
# -pedantic Enable additional GCC warnings to detect possible errors.
2727
# -enable-linscan Enable linearscan tests
28-
# -disable-codegen Disable LLC and JIT tests in the nightly tester.
28+
# -disable-llc Disable LLC tests in the nightly tester.
29+
# -disable-jit Disable JIT tests in the nightly tester.
2930
# -verbose Turn on some debug output
3031
# -debug Print information useful only to maintainers of this script.
3132
# -nice Checkout/Configure/Build with "nice" to reduce impact
@@ -78,7 +79,7 @@
7879
my $PROGTESTOPTS = "";
7980
my $VERBOSE = 0;
8081
my $DEBUG = 0;
81-
my $CONFIGUREARGS = "--enable-jit";
82+
my $CONFIGUREARGS = "";
8283
my $NICE = "";
8384

8485
sub ReadFile {
@@ -262,9 +263,10 @@ sub GetQMTestResults { # (filename)
262263
next;
263264
}
264265
if (/^-enable-linscan$/) { $PROGTESTOPTS .= " ENABLE_LINEARSCAN=1"; next; }
265-
if (/^-disable-codegen$/){ $PROGTESTOPTS .= " DISABLE_JIT=1 DISABLE_LLC=1";
266-
$CONFIGUREARGS="--disable-jit --disable-llc_diffs";
267-
next; }
266+
if (/^-disable-llc$/) { $PROGTESTOPTS .= " DISABLE_LLC=1";
267+
$CONFIGUREARGS .= " --disable-llc_diffs"; next; }
268+
if (/^-disable-jit$/) { $PROGTESTOPTS .= " DISABLE_JIT=1";
269+
$CONFIGUREARGS .= " --disable-jit"; next; }
268270
if (/^-verbose$/) { $VERBOSE = 1; next; }
269271
if (/^-debug$/) { $DEBUG = 1; next; }
270272
if (/^-nice$/) { $NICE = "nice "; next; }
@@ -279,6 +281,9 @@ sub GetQMTestResults { # (filename)
279281
if ($ENV{'LLVMGCCDIR'}) {
280282
$CONFIGUREARGS .= " --with-llvmgccdir=" . $ENV{'LLVMGCCDIR'};
281283
}
284+
if ($CONFIGUREARGS !~ /--disable-jit/) {
285+
$CONFIGUREARGS .= " --enable-jit";
286+
}
282287

283288
die "Must specify 0 or 3 options!" if (@ARGV != 0 and @ARGV != 3);
284289

0 commit comments

Comments
 (0)