Skip to content
  • Alex D's avatar
    Revamp derived Eq instance code generation (#17240) · c08a6c2d
    Alex D authored
    This patch improves code generation for derived Eq instances.
    The idea is to use 'dataToTag' to evaluate both arguments.
    This allows to 'short-circuit' when tags do not match.
    Unfortunately, inner evals are still present when we branch
    on tags. This is due to the way 'dataToTag#' primop
    evaluates its argument in the code generator. #21207 was
    created to explore further optimizations.
    
    Metric Decrease:
        LargeRecord
    c08a6c2d