From aedc3923db55f63db39f186bd5bfa190a0b52edc Mon Sep 17 00:00:00 2001 From: Troels Henriksen Date: Wed, 1 Nov 2023 09:58:59 +0100 Subject: [PATCH] One line is enough. --- src/Futhark/Optimise/CSE.hs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Futhark/Optimise/CSE.hs b/src/Futhark/Optimise/CSE.hs index c47005886f..d6f6927e65 100644 --- a/src/Futhark/Optimise/CSE.hs +++ b/src/Futhark/Optimise/CSE.hs @@ -109,11 +109,7 @@ performCSEOnStms = f stms = fst $ runReader - ( cseInStms - (consumedInStms stms) - (stmsToList stms) - (pure ()) - ) + (cseInStms (consumedInStms stms) (stmsToList stms) (pure ())) -- It is never safe to CSE arrays in stms in isolation, -- because we might introduce additional aliasing. (newCSEState False)