diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-23 22:43:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-08-23 22:43:42 +0800 |
commit | 162651eed9b741d354ef0df44243e96e3b0c08f9 (patch) | |
tree | 712cc1bc099ea041e41351f8ac5ef2d95903768c | |
parent | 8220486a6af6abcc261810e7c35c7af8dbd0169b (diff) | |
download | mrust-162651eed9b741d354ef0df44243e96e3b0c08f9.tar.gz |
MIR Optimise - TODO: Reduce cost
-rw-r--r-- | src/mir/optimise.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/optimise.cpp b/src/mir/optimise.cpp index 73cbaa04..973aa49f 100644 --- a/src/mir/optimise.cpp +++ b/src/mir/optimise.cpp @@ -567,6 +567,7 @@ void MIR_Optimise(const StaticTraitResolve& resolve, const ::HIR::ItemPath& path // >> Unify duplicate temporaries // If two temporaries don't overlap in lifetime (blocks in which they're valid), unify the two + // TODO: Only run this when nothing else happened. (It's VERY expensive) change_happened |= MIR_Optimise_UnifyTemporaries(state, fcn); #if CHECK_AFTER_ALL MIR_Validate(resolve, path, fcn, args, ret_type); |