Skip to content
  • Dan Gohman's avatar
    Enhance address-mode folding of ISD::ADD to handle cases where the · a1d92423
    Dan Gohman authored
    operands can't both be fully folded at the same time. For example,
    in the included testcase, a global variable is being added with
    an add of two values. The global variable wants RIP-relative
    addressing, so it can't share the address with another base
    register, but it's still possible to fold the initial add.
    
    llvm-svn: 66865
    a1d92423
Loading