From: Mike Danes Date: Tue, 17 Nov 2015 18:22:56 +0000 (+0200) Subject: Ifdef out useless code X-Git-Tag: accepted/tizen/base/20180629.140029~6144^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=655e5dabce50378be3347486ed9de2b9d524ef36;p=platform%2Fupstream%2Fcoreclr.git 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. --- 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;