diff options
author | John Hodge <tpg@mutabah.net> | 2016-12-14 22:33:02 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-12-14 22:33:02 +0800 |
commit | 2a45f78605089afebfaf628aac50fc5fd51dfb25 (patch) | |
tree | f3bc7e7c0118c7f9990a50b7859d0ca8e81607a5 /src/main.cpp | |
parent | db8c101b11d5f7a926144ccdb8d156fa11944d2a (diff) | |
download | mrust-2a45f78605089afebfaf628aac50fc5fd51dfb25.tar.gz |
Consteval - Re-enabled full first-pass consteval
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index 33bed1bb..b8219c48 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -65,6 +65,8 @@ void init_debug_list() g_debug_disable_map.insert( "MIR Validate" );
g_debug_disable_map.insert( "Dump MIR" );
g_debug_disable_map.insert( "Constant Evaluate Full" );
+ g_debug_disable_map.insert( "MIR Cleanup" );
+ g_debug_disable_map.insert( "MIR Optimise" );
g_debug_disable_map.insert( "HIR Serialise" );
g_debug_disable_map.insert( "Trans Enumerate" );
@@ -395,13 +397,13 @@ int main(int argc, char *argv[]) HIR_Dump( os, *hir_crate );
});
- // - Expand constants in MIR
- CompilePhaseV("MIR Const Expand", [&]() {
- //MIR_ExpandConstants(*hir_crate);
+ // - Expand constants in HIR and virtualise calls
+ CompilePhaseV("MIR Cleanup", [&]() {
+ MIR_CleanupCrate(*hir_crate);
});
// Optimise the MIR
CompilePhaseV("MIR Optimise", [&]() {
- //MIR_Optimise(*hir_crate);
+ MIR_OptimiseCrate(*hir_crate);
});
CompilePhaseV("Dump MIR", [&]() {
|