From 655e5dabce50378be3347486ed9de2b9d524ef36 Mon Sep 17 00:00:00 2001 From: Mike Danes Date: Tue, 17 Nov 2015 20:22:56 +0200 Subject: [PATCH] Ifdef out useless code In 64 bit builds Lowering::DecompNodeHelper does nothing so walking the trees is pointless. Profiling indicates that this accounts for 0.5% of the mscorlib crossgen time. --- src/jit/lower.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/jit/lower.cpp b/src/jit/lower.cpp index d94b0ba..2119da3 100644 --- a/src/jit/lower.cpp +++ b/src/jit/lower.cpp @@ -3417,7 +3417,9 @@ void Lowering::DoPhase() } #endif comp->compCurStmt = stmt; +#if !defined(_TARGET_64BIT_) comp->fgWalkTreePost(&stmt->gtStmt.gtStmtExpr, &Lowering::DecompNodeHelper, this, true); +#endif comp->fgWalkTreePost(&stmt->gtStmt.gtStmtExpr, &Lowering::LowerNodeHelper, this, true); // We may have removed "stmt" in LowerNode(). stmt = comp->compCurStmt; -- 2.7.4