Turn on LegalizeTypes, the new type legalization
authorDuncan Sands <baldrick@free.fr>
Mon, 27 Oct 2008 08:42:46 +0000 (08:42 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 27 Oct 2008 08:42:46 +0000 (08:42 +0000)
codegen infrastructure, by default.  Please report
any breakage to the mailing lists.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58232 91177308-0d34-0410-b5e6-96231b3b80d8

26 files changed:
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/Generic/2007-11-21-UndeadIllegalNode.ll
test/CodeGen/Generic/APIntLoadStore.ll
test/CodeGen/Generic/APIntParam.ll
test/CodeGen/Generic/APIntSextParam.ll
test/CodeGen/Generic/APIntZextParam.ll
test/CodeGen/Mips/2008-06-05-Carry.ll
test/CodeGen/Mips/2008-07-03-SRet.ll
test/CodeGen/Mips/2008-07-05-ByVal.ll
test/CodeGen/Mips/2008-07-06-fadd64.ll
test/CodeGen/Mips/2008-07-07-FPExtend.ll
test/CodeGen/Mips/2008-07-07-Float2Int.ll
test/CodeGen/Mips/2008-07-07-IntDoubleConvertions.ll
test/CodeGen/Mips/2008-07-15-InternalConstant.ll
test/CodeGen/Mips/2008-07-16-SignExtInReg.ll
test/CodeGen/Mips/2008-07-22-Cstpool.ll
test/CodeGen/Mips/2008-07-23-fpcmp.ll
test/CodeGen/Mips/2008-07-29-icmp.ll
test/CodeGen/Mips/2008-07-31-fcopysign.ll
test/CodeGen/Mips/2008-08-01-AsmInline.ll
test/CodeGen/Mips/2008-08-03-fabs64.ll
test/CodeGen/Mips/2008-08-04-Bitconvert.ll
test/CodeGen/Mips/2008-08-06-Alloca.ll
test/CodeGen/Mips/2008-08-07-FPRound.ll
test/CodeGen/X86/2008-10-16-VecUnaryOp.ll
test/CodeGen/X86/2008-10-24-FlippedCompare.ll

index 98ebebe50ec06e3aae0bb66c5020f98f43a9cb67..4e05814b1a1c39ea6ebae350ce297410fcc65f15 100644 (file)
@@ -54,7 +54,7 @@ using namespace llvm;
 static cl::opt<bool>
 EnableValueProp("enable-value-prop", cl::Hidden);
 static cl::opt<bool>
-EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
+DisableLegalizeTypes("disable-legalize-types", cl::Hidden);
 static cl::opt<bool>
 EnableFastISelVerbose("fast-isel-verbose", cl::Hidden,
           cl::desc("Enable verbose messages in the \"fast\" "
@@ -572,7 +572,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
   
   // Second step, hack on the DAG until it only uses operations and types that
   // the target supports.
-  if (EnableLegalizeTypes) {// Enable this some day.
+  if (!DisableLegalizeTypes) {
     if (ViewLegalizeTypesDAGs) CurDAG->viewGraph("legalize-types input for " +
                                                  BlockName);
 
index b0a27640be77a1ef6fb290d8d003af9855cd5c48..cedee6ffbe0de7b336a53ac7ebb6f7806ebfdd4b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -o -
+; RUN: llvm-as < %s | llc -o -
 
 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-f80:32:32"
 target triple = "i686-pc-linux-gnu"
index bb3b19424028553801786621dee7843a675a7129..bee7c63298083e044c41b7abade56d37f4eff3ec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_l = external global i1             ; <i1*> [#uses=1]
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_l = external global i2             ; <i2*> [#uses=1]
index 8ce45d5ccd53a11f683866627923f0f85f1f1542..c1a3a449bcc93a4a31f0537750935128f64fc79e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_s = external global i2             ; <i2*> [#uses=1]
 @i3_s = external global i3             ; <i3*> [#uses=1]
index fa657bbc95beddaf4e0ec73816a9d090d08f551c..c5927fcf732df17542841d59a314d0aa94ed43c8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_s = external global i2             ; <i2*> [#uses=1]
 @i3_s = external global i3             ; <i3*> [#uses=1]
index 926e8287121fae5ea8c3ec88043d5e88731bb534..71d327063b066b4a7f39293dc46f63650dee716b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types
+; RUN: llvm-as < %s | llc
 @i1_s = external global i1             ; <i1*> [#uses=1]
 @i2_s = external global i2             ; <i2*> [#uses=1]
 @i3_s = external global i3             ; <i3*> [#uses=1]
index c2c5e5eea0719b4f6e1e8ea1a0d3c7b1be0e0430..9cd7c80577a166728b56913b739f12b615abc89c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep subu %t | count 2
 ; RUN: grep addu %t | count 4
 
index b2813f2e6735b0ecfdc1916ca3442e249289d066..53ceaf360653ba3e7dbbcc1202bcbbd42ef66364 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips |  \
-; RUN:    grep {sw.*(\$4)} | count 3
+; RUN: llvm-as < %s | llc -march=mips | grep {sw.*(\$4)} | count 3
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 6e14b784da8c98708e2c1bd256a2acff2608ee65..2d1101a253027db2fc7f3f2eb5150ab1f4977877 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips |  \
-; RUN:    grep {lw.*(\$4)} | count 2
+; RUN: llvm-as < %s | llc -march=mips | grep {lw.*(\$4)} | count 2
 
 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:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index d85e1e01b4a5edd3836614753bf628d46c0fd5b9..95792ff15719d55ae0ab8f1096d5dee2b5500754 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep __adddf3
+; RUN: llvm-as < %s | llc -march=mips | grep __adddf3
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 265da730b27f7bafbc310fc1bbd14b26167c2dfa..e0e7d767b1d8001ccc878991c30eda028fb484b5 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep __extendsfdf2
+; RUN: llvm-as < %s | llc -march=mips | grep __extendsfdf2
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index ccaac0edd564de94c6becab05b4db2e2f24a9ebb..f2f0374c31685c5bcf70186675a99ad4412f445c 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep trunc.w.s | count 3
+; RUN: llvm-as < %s | llc -march=mips | grep trunc.w.s | count 3
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index bf2b4d082a5580119ca0a3358e48ce292139a1f7..ab6a9c8edae88bed3822fc29282e7200ac4846b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep __floatsidf   %t | count 1
 ; RUN: grep __floatunsidf %t | count 1
 ; RUN: grep __fixdfsi %t | count 1
index ea0f5fef062e25ca15a346ba41ddd255be7219a7..4d218cf6b4bc29d608863b166829589d0accba48 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t 
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {rodata.str1.4,"aMS",@progbits}  %t | count 1
 ; RUN: grep {r.data,}  %t | count 1
 ; RUN: grep {\%hi} %t | count 2
index 872f65d847f3b00552e38857f800a9156ff6e15e..fc03bb5fef0d4403576764d9199843840d44791b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep seh %t | count 1
 ; RUN: grep seb %t | count 1
 
index 770cc69c04f5737f8380e085289a1bd5ee742b1f..99eccf500db5392985c8ddf9e70e2127b95386dd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t 
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {CPI\[01\]_\[01\]:} %t | count 2
 ; RUN: grep {rodata.cst4,"aM",@progbits} %t | count 1
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
index 3fcec1629d849368f132ee9d3f002760f53a16a7..7bc1f42d10a474a132f83899b5d54129f6758dea 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {c\\..*\\.s} %t | count 3
 ; RUN: grep {bc1\[tf\]} %t | count 3
 
index ee2b71fa23572cd6e8b8e908b8f5cd5be96b3eca..5d03a1986b2d4bcee07306b442389999ffdb3027 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep {b\[ne\]\[eq\]} | count 1
+; RUN: llvm-as < %s | llc -march=mips | grep {b\[ne\]\[eq\]} | count 1
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index a1f4443d645ecf33f1c4d61163c671eaa826d451..de11ac77c01e2bde999166a8c0d55b8591d3d141 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep abs.s  %t | count 1
 ; RUN: grep neg.s %t | count 1
 
index 1bd645af73891eefcb1bde1e4028c0fe26f77c5d..fea5730f73d10320b55d50dfd05681c9ef4672a5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t 
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep mfhi  %t | count 1
 ; RUN: grep mflo  %t | count 1
 ; RUN: grep multu %t | count 1
index 4ce1b1c707031bd50d7ba8ccd1e58a5e733da0a3..8495bfe112904a4e7151f1d864abd30d738e54b1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep {lui.*32767} %t | count 1
 ; RUN: grep {ori.*65535} %t | count 1
 
index fca3c00c69d4e34cf2e1b8f20f89c5fb43feff1d..f7a64c32f27bc45d0e99811d803b5b444e5941b6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips -f -o %t
+; RUN: llvm-as < %s | llc -march=mips -f -o %t
 ; RUN: grep mtc1 %t | count 1
 ; RUN: grep mfc1 %t | count 1
 
index aaac67ea62c4e5b6af7ddea7dbec63b727dbc7ec..34596ea029a042bfd8a3b990bc7f6b1ab37e5c8b 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep {subu.*sp} | count 2
+; RUN: llvm-as < %s | llc -march=mips | grep {subu.*sp} | count 2
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 1382f8767510618fb3f1ce8747cc31876ecfc060..fd41ff1f8cf237b5097eae03bc6d0172e0f40994 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=mips | \
-; RUN: grep __truncdfsf2 | count 1
+; RUN: llvm-as < %s | llc -march=mips | grep __truncdfsf2 | count 1
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64"
 target triple = "mipsallegrexel-psp-elf"
index 5a7d9a9d22c9890d4bf2cfcfb70780f4de2e6caa..e1dc7b6bb27c1188796720322172c8c3215fe7c6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -enable-legalize-types
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
 ; PR2762
 define void @foo(<4 x i32>* %p, <4 x double>* %q) {
   %n = load <4 x i32>* %p
index 8a7987db5991fda77b076c4aab94723ca0dbdff3..d6ae05e3798e34177dbfb2db00b4995e0d3f28b5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -enable-legalize-types -march=x86 -mattr=+sse2 -o - | not grep {ucomiss\[^,\]*esp}
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -o - | not grep {ucomiss\[^,\]*esp}
 
 define void @f(float %wt) {
 entry: