Skip to content

Commit 3f17f82

Browse files
committed
Remove logs at LevelOther "Simplify"
1 parent 72311db commit 3f17f82

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

booster/library/Booster/Pattern/ApplyEquations.hs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,6 @@ llvmSimplify term = do
427427
case config.llvmApi of
428428
Nothing -> pure term
429429
Just api -> do
430-
logOtherNS "booster" (LevelOther "Simplify") "Calling LLVM simplification"
431430
let simp = cached LLVM $ evalLlvm config.definition api $ traverseTerm BottomUp simp pure
432431
in simp term
433432
where
@@ -808,7 +807,6 @@ emitEquationTrace t loc lbl uid res = do
808807
Success rewritten -> EquationApplied t (EquationMetadata loc lbl uid) rewritten
809808
Failure failure -> EquationNotApplied t (EquationMetadata loc lbl uid) failure
810809
prettyItem = pack . renderDefault . pretty $ newTraceItem
811-
logOther (LevelOther "Simplify") prettyItem
812810
case res of
813811
Success{} -> logOther (LevelOther "SimplifySuccess") prettyItem
814812
_ -> pure ()
@@ -916,13 +914,9 @@ applyEquation term rule = fmap (either Failure Success) $ runExceptT $ do
916914
checkConstraint whenBottom (Predicate p) = withContext "constraint" $ do
917915
let fallBackToUnsimplifiedOrBottom :: EquationFailure -> EquationT io Term
918916
fallBackToUnsimplifiedOrBottom = \case
919-
e@UndefinedTerm{} -> do
920-
logOther (LevelOther "Simplify") . pack . renderDefault $ pretty e
917+
UndefinedTerm{} ->
921918
pure FalseBool
922-
e -> do
923-
logOther (LevelOther "Simplify") . pack . renderDefault $
924-
"Aborting recursive simplification:" <> pretty e
925-
pure p
919+
_ -> pure p
926920
-- exceptions need to be handled differently in the recursion,
927921
-- falling back to the unsimplified constraint instead of aborting.
928922
simplified <-

0 commit comments

Comments
 (0)