From 162651eed9b741d354ef0df44243e96e3b0c08f9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Wed, 23 Aug 2017 22:43:29 +0800 Subject: MIR Optimise - TODO: Reduce cost --- src/mir/optimise.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3