lean4-htt/src/Lean/Compiler
Leonardo de Moura 0684c95d35
fix: do not lift (<- ...) over pure if-then-else (#3820)
Now, only `(<- ...)`s occurring in the condition of a pure if-then-else
are lifted.
That is, `if (<- foo) then ... else ...` is ok, but `if ... then (<-
foo) else ...` is not. See #3713

closes #3713 

This PR also adjusts this repo. Note that some of the `(<- ...)` were
harmless since they were just accessing some
read-only state.
2024-04-01 21:33:59 +00:00
..
IR fix: do not lift (<- ...) over pure if-then-else (#3820) 2024-04-01 21:33:59 +00:00
LCNF fix: do not lift (<- ...) over pure if-then-else (#3820) 2024-04-01 21:33:59 +00:00
AtMostOnce.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
BorrowedAnnotation.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
ClosedTermCache.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
ConstFolding.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
CSimpAttr.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
ExportAttr.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
ExternAttr.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
FFI.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
ImplementedByAttr.lean feat: reserved names (#3675) 2024-03-15 00:33:22 +00:00
InitAttr.lean feat: reserved names (#3675) 2024-03-15 00:33:22 +00:00
InlineAttrs.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
IR.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
LCNF.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
Main.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
NameMangling.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
NeverExtractAttr.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
NoncomputableAttr.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
Old.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
Options.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00
Specialize.lean perf: add prelude to all Lean modules 2024-02-18 14:55:17 -08:00