Ifdef out useless code
authorMike Danes <onemihaid@hotmail.com>
Tue, 17 Nov 2015 18:22:56 +0000 (20:22 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 17 Nov 2015 18:22:56 +0000 (20:22 +0200)
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

index d94b0ba..2119da3 100644 (file)
@@ -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;