Skip to content
  1. Jun 27, 2011
  2. Jun 26, 2011
  3. Jun 25, 2011
  4. Jun 24, 2011
  5. Jun 23, 2011
  6. Jun 22, 2011
  7. Jun 21, 2011
    • Evan Cheng's avatar
      Teach dag combine to match halfword byteswap patterns. · 4c0bd962
      Evan Cheng authored
      1. (((x) & 0xFF00) >> 8) | (((x) & 0x00FF) << 8)
         => (bswap x) >> 16
      2. ((x&0xff)<<8)|((x&0xff00)>>8)|((x&0xff000000)>>8)|((x&0x00ff0000)<<8))
         => (rotl (bswap x) 16)
      
      This allows us to eliminate most of the def : Pat patterns for ARM rev16
      revsh instructions. It catches many more cases for ARM and x86.
      
      rdar://9609108
      
      llvm-svn: 133503
      4c0bd962
  8. Jun 20, 2011
  9. Jun 19, 2011
  10. Jun 18, 2011
Loading