Skip to content
  • Bob Wilson's avatar
    Add some missing checks in TwoAddressInstructionPass::CoalesceExtSubRegs. · a733daf1
    Bob Wilson authored
    Check that all the instructions are in the same basic block, that the
    EXTRACT_SUBREGs write to the same subregs that are being extracted, and that
    the source and destination registers are in the same regclass.  Some of
    these constraints can be relaxed with a bit more work.  Jakob suggested
    that the loop that checks for subregs when NewSubIdx != 0 should use the
    "nodbg" iterator, so I made that change here, too.
    
    llvm-svn: 105437
    a733daf1
Loading