summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-08-23 22:43:29 +0800
committerJohn Hodge <tpg@mutabah.net>2017-08-23 22:43:42 +0800
commit162651eed9b741d354ef0df44243e96e3b0c08f9 (patch)
tree712cc1bc099ea041e41351f8ac5ef2d95903768c
parent8220486a6af6abcc261810e7c35c7af8dbd0169b (diff)
downloadmrust-162651eed9b741d354ef0df44243e96e3b0c08f9.tar.gz
MIR Optimise - TODO: Reduce cost
-rw-r--r--src/mir/optimise.cpp1
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);