Skip to content

Commit

Permalink
disable spurious simpcase guard
Browse files Browse the repository at this point in the history
  • Loading branch information
bollu committed Oct 15, 2021
1 parent 66fcfcc commit 60e120b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lean/Compiler/IR/SimpCase.lean
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private def maxOccs (alts : Array Alt) : Alt × Nat := do
return (maxAlt, max)

private def addDefault (alts : Array Alt) : Array Alt :=
if alts.size <= 1 || alts.any Alt.isDefault then alts
if alts.size <= 1 then alts
else
let (max, noccs) := maxOccs alts;
if noccs == 1 then alts
Expand Down

0 comments on commit 60e120b

Please sign in to comment.