Improve code generation for switch
statements
#233
Labels
enhancement
New feature or request
💗 good first feature
a feature that is relatively easy to implement
There are at least 2 potential improvements:
Better naming variables used to store the instructions representing the start of code for each
case
, i.e, instead of naming themNop_[number]
, use something likeCaseCode_[index]_[number]
orCase_[index]_[number]
or similar. This improves code readabilityIf there is a
default
case, do not emit unreachable code (See code below).The text was updated successfully, but these errors were encountered: