Skip to content
  • Andreas Klebinger's avatar
    Update JMP_TBL targets during shortcutting in X86 NCG. · 120a2617
    Andreas Klebinger authored
    Without updating the JMP_TBL information the block list in
    JMP_TBL contained blocks which were eliminated in some circumstances.
    
    The actual assembly generation doesn't look at these fields so this
    didn't cause any bugs yet. However as long as we carry this information
    around we should make an effort to keep it correct.
    
    Especially since it's useful for debugging purposes and can be used
    for passes near the end of the codegen pipeline.
    In particular it's used by jumpDestsOfInstr which without these changes
    returns the wrong destinations.
    
    Test Plan: ci
    
    Reviewers: bgamari
    
    Subscribers: thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4566
    120a2617