Convert all tests using TCL-style quoting to use shell-style quoting.

This was done through the aid of a terrible Perl creation. I will not
paste any of the horrors here. Suffice to say, it require multiple
staged rounds of replacements, state carried between, and a few
nested-construct-parsing hacks that I'm not proud of. It happens, by
luck, to be able to deal with all the TCL-quoting patterns in evidence
in the LLVM test suite.

If anyone is maintaining large out-of-tree test trees, feel free to poke
me and I'll send you the steps I used to convert things, as well as
answer any painful questions etc. IRC works best for this type of thing
I find.

Once converted, switch the LLVM lit config to use ShTests the same as
Clang. In addition to being able to delete large amounts of Python code
from 'lit', this will also simplify the entire test suite and some of
lit's architecture.

Finally, the test suite runs 33% faster on Linux now. ;]
For my 16-hardware-thread (2x 4-core xeon e5520): 36s -> 24s

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159525 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chandler Carruth
2012-07-02 12:47:22 +00:00
parent 563add96ce
commit 4177e6fff5
443 changed files with 611 additions and 609 deletions

View File

@@ -1,5 +1,5 @@
; RUN: opt < %s -indvars -S | \
; RUN: grep {ret i32 152}
; RUN: grep "ret i32 152"
define i32 @main() {
entry:

View File

@@ -1,6 +1,6 @@
; PR726
; RUN: opt < %s -indvars -S | \
; RUN: grep {ret i32 27}
; RUN: grep "ret i32 27"
; Make sure to compute the right exit value based on negative strides.

View File

@@ -1,4 +1,4 @@
; RUN: opt < %s -S -indvars | grep {= icmp} | count 3
; RUN: opt < %s -S -indvars | grep "= icmp" | count 3
; PR4914.ll
; Indvars should be able to do range analysis and eliminate icmps.

View File

@@ -1,4 +1,4 @@
; RUN: opt < %s -indvars -S | grep {ret i32 600000}
; RUN: opt < %s -indvars -S | grep "ret i32 600000"
; PR1179
define i32 @foo() {

View File

@@ -1,4 +1,4 @@
; RUN: opt < %s -indvars -S | grep {ret i32 9900}
; RUN: opt < %s -indvars -S | grep "ret i32 9900"
; PR1179
define i32 @test4() {

View File

@@ -1,4 +1,4 @@
; RUN: opt < %s -indvars -S | grep {120, %bb2.bb3_crit_edge}
; RUN: opt < %s -indvars -S | grep "120, %bb2.bb3_crit_edge"
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-pc-linux-gnu"

View File

@@ -1,5 +1,5 @@
; RUN: opt < %s -scalar-evolution -analyze \
; RUN: | grep {\\--> (zext i4 {-7,+,-8}<%loop> to i32)}
; RUN: | grep "\--> (zext i4 {-7,+,-8}<%loop> to i32)"
define fastcc void @foo() nounwind {
entry: