File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
booster/library/Booster/Pattern Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,6 @@ llvmSimplify term = do
427
427
case config. llvmApi of
428
428
Nothing -> pure term
429
429
Just api -> do
430
- logOtherNS " booster" (LevelOther " Simplify" ) " Calling LLVM simplification"
431
430
let simp = cached LLVM $ evalLlvm config. definition api $ traverseTerm BottomUp simp pure
432
431
in simp term
433
432
where
@@ -808,7 +807,6 @@ emitEquationTrace t loc lbl uid res = do
808
807
Success rewritten -> EquationApplied t (EquationMetadata loc lbl uid) rewritten
809
808
Failure failure -> EquationNotApplied t (EquationMetadata loc lbl uid) failure
810
809
prettyItem = pack . renderDefault . pretty $ newTraceItem
811
- logOther (LevelOther " Simplify" ) prettyItem
812
810
case res of
813
811
Success {} -> logOther (LevelOther " SimplifySuccess" ) prettyItem
814
812
_ -> pure ()
@@ -916,13 +914,9 @@ applyEquation term rule = fmap (either Failure Success) $ runExceptT $ do
916
914
checkConstraint whenBottom (Predicate p) = withContext " constraint" $ do
917
915
let fallBackToUnsimplifiedOrBottom :: EquationFailure -> EquationT io Term
918
916
fallBackToUnsimplifiedOrBottom = \ case
919
- e@ UndefinedTerm {} -> do
920
- logOther (LevelOther " Simplify" ) . pack . renderDefault $ pretty e
917
+ UndefinedTerm {} ->
921
918
pure FalseBool
922
- e -> do
923
- logOther (LevelOther " Simplify" ) . pack . renderDefault $
924
- " Aborting recursive simplification:" <> pretty e
925
- pure p
919
+ _ -> pure p
926
920
-- exceptions need to be handled differently in the recursion,
927
921
-- falling back to the unsimplified constraint instead of aborting.
928
922
simplified <-
You can’t perform that action at this time.
0 commit comments