Skip to content
  • Dan Gohman's avatar
    When doing address-mode sinking, expand the base register first, rather · ca19445d
    Dan Gohman authored
    than the scaled register. This makes it more likely that subsequent
    AddrModeMatcher queries will match the new address the same way as the
    old, instead of accidentally matching what had been the base register
    as the new scaled register, and then failing to match the scaled register.
    This fixes some problems with address-mode sinking multiple muls into a
    block, which will be a lot more common with some upcoming
    LoopStrengthReduction changes.
    
    llvm-svn: 93935
    ca19445d
Loading