Skip to content
  • Bob Wilson's avatar
    Overhaul the TwoAddressInstructionPass to simplify the logic, especially · 5c7d9ca5
    Bob Wilson authored
    for the complicated case where one register is tied to multiple destinations.
    This avoids the extra scan of instruction operands that was introduced by
    my recent change.  I also pulled some code out into a separate
    TryInstructionTransform method, added more comments, and renamed some
    variables.
    
    Besides all those changes, this takes care of a FIXME in the code regarding
    an assumption about there being a single tied use of a register when
    converting to a 3-address form.  I'm not aware of cases where that assumption
    is violated, but the code now only attempts to transform an instruction,
    either by commuting its operands or by converting to a 3-address form,
    for the simple case where there is a single pair of tied operands.
    
    llvm-svn: 80945
    5c7d9ca5
Loading