forked from OSchip/llvm-project
Turn on LegalizeTypes, the new type legalization
codegen infrastructure, by default. Please report any breakage to the mailing lists. llvm-svn: 58232
This commit is contained in:
parent
c5a68d26d9
commit
8475d56794
|
@ -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);
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue