mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
make legalize types be a command line option: -enable-legalize-types.
llvm-svn: 53434
This commit is contained in:
parent
4e5efc791c
commit
5e784a8ebd
@ -50,7 +50,9 @@
|
||||
using namespace llvm;
|
||||
|
||||
static cl::opt<bool>
|
||||
EnableValueProp("enable-value-prop", cl::Hidden, cl::init(false));
|
||||
EnableValueProp("enable-value-prop", cl::Hidden);
|
||||
static cl::opt<bool>
|
||||
EnableLegalizeTypes("enable-legalize-types", cl::Hidden);
|
||||
|
||||
|
||||
#ifndef NDEBUG
|
||||
@ -5296,10 +5298,11 @@ void SelectionDAGISel::CodeGenAndEmitDAG(SelectionDAG &DAG) {
|
||||
|
||||
// Second step, hack on the DAG until it only uses operations and types that
|
||||
// the target supports.
|
||||
#if 0 // Enable this some day.
|
||||
DAG.LegalizeTypes();
|
||||
// Someday even later, enable a dag combine pass here.
|
||||
#endif
|
||||
if (EnableLegalizeTypes) {// Enable this some day.
|
||||
DAG.LegalizeTypes();
|
||||
// TODO: enable a dag combine pass here.
|
||||
}
|
||||
|
||||
if (TimePassesIsEnabled) {
|
||||
NamedRegionTimer T("DAG Legalization");
|
||||
DAG.Legalize();
|
||||
|
Loading…
x
Reference in New Issue
Block a user