mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
Turn on LegalizeTypes by default.
llvm-svn: 53671
This commit is contained in:
parent
96d9bcbdf6
commit
b2e1ddbd0b
@ -52,7 +52,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);
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
@ -5296,14 +5296,16 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) {
|
||||
|
||||
DOUT << "Optimized lowered selection DAG:\n";
|
||||
DEBUG(DAG.dump());
|
||||
|
||||
|
||||
// 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) {// Remove this some day.
|
||||
DAG.LegalizeTypes();
|
||||
DOUT << "Type legalized selection DAG:\n";
|
||||
DEBUG(DAG.dump());
|
||||
// TODO: enable a dag combine pass here.
|
||||
}
|
||||
|
||||
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("DAG Legalization", GroupName);
|
||||
DAG.Legalize();
|
||||
|
@ -1,6 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -o -
|
||||
; XFAIL: *
|
||||
; Un-XFAIL this once LegalizeDAGTypes is turned on.
|
||||
|
||||
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user