From 6de65145e03fa512447884431837d3575f2464af Mon Sep 17 00:00:00 2001 From: Max Graey Date: Mon, 13 Dec 2021 19:19:49 +0200 Subject: [Precompute][SIMD] Enable constant folding for simd (#4381) --- src/passes/Precompute.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/passes/Precompute.cpp') diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp index 621c2f886..f599990a0 100644 --- a/src/passes/Precompute.cpp +++ b/src/passes/Precompute.cpp @@ -271,17 +271,8 @@ struct Precompute if (Properties::isConstantExpression(curr) || curr->is()) { return; } - // Until engines implement v128.const and we have SIMD-aware optimizations - // that can break large v128.const instructions into smaller consts and - // splats, do not try to precompute v128 expressions. - if (curr->type.isVector()) { - return; - } // try to evaluate this into a const Flow flow = precomputeExpression(curr); - if (flow.getType().hasVector()) { - return; - } if (!canEmitConstantFor(flow.values)) { return; } -- cgit v1.2.3