• Ondřej Zajíček's avatar
    Filter: Change linearization of branches in switch instruction · e20bef69
    Ondřej Zajíček authored
    Most branching instructions (FI_CONDITION, FI_AND, FI_OR) linearize its
    branches in a recursive way, while FI_SWITCH branches are linearized
    from parser even before the switch instruction is allocated.
    
    Change linearization of FI_SWITCH branches to make it similar to other
    branching instructions. This also fixes an issue with constant
    switch evaluation, where linearized branch is mistaken for
    non-linearized during switch construction.
    
    Thanks to Jiten Kumar Pathy for the bugreport.
    e20bef69