From 605e2b7498a7979b59917aa5db17d5022e974c8b Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 25 Feb 2019 10:04:09 -0800 Subject: SmallVector (#1912) Trying to refactor the code to be simpler and less redundant, I ran into some perf issues that it seems like a small vector, with fixed-size storage and optional additional storage as needed, might help with. This implements that class and uses it in a few places. This seems to help, I see some 1-2% fewer instructions and cycles in `perf stat`, but it's hard to tell if it really makes a noticeable difference. --- src/passes/SimplifyLocals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/SimplifyLocals.cpp') diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp index 91f0f8d4f..a4931f06c 100644 --- a/src/passes/SimplifyLocals.cpp +++ b/src/passes/SimplifyLocals.cpp @@ -271,7 +271,7 @@ struct SimplifyLocals : public WalkerPass expressionStack; + ExpressionStack expressionStack; static void visitPre(SimplifyLocals* self, Expression** currp) { Expression* curr = *currp; -- cgit v1.2.3