Skip to content
  1. Jan 17, 2012
  2. Jan 16, 2012
  3. Jan 15, 2012
    • Nadav Rotem's avatar
      [AVX] Optimize x86 VSELECT instructions using SimplifyDemandedBits. · 57935243
      Nadav Rotem authored
      We know that the blend instructions only use the MSB, so if the mask is
      sign-extended then we can convert it into a SHL instruction. This is a
      common pattern because the type-legalizer sign-extends the i1 type which
      is used by the LLVM-IR for the condition.
      
      Added a new optimization in SimplifyDemandedBits for SIGN_EXTEND_INREG -> SHL.
      
      llvm-svn: 148225
      57935243
Loading