From a618f382f6b72de258b5088493befafe0b8a6147 Mon Sep 17 00:00:00 2001 From: Roman Leshchinskiy Date: Wed, 7 May 2008 02:00:55 +0000 Subject: [PATCH] Vectorise even with -O0 --- compiler/main/DynFlags.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 2c5d497..9e28d4c 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -873,9 +873,10 @@ getCoreToDo dflags MaxSimplifierIterations max_iter ] - core_todo = + core_todo = if opt_level == 0 then - [simpl_phase 0 ["final"] max_iter] + [runWhen vectorisation (CoreDoPasses [ simpl_gently, CoreDoVectorisation ]), + simpl_phase 0 ["final"] max_iter] else {- opt_level >= 1 -} [ -- We want to do the static argument transform before full laziness as it -- 1.7.10.4