Skip to content
  • Michael Liao's avatar
    Fix PR10475 · 6af16fc3
    Michael Liao authored
    - ISD::SHL/SRL/SRA must have either both scalar or both vector operands
      but TLI.getShiftAmountTy() so far only return scalar type. As a
      result, backend logic assuming that breaks.
    - Rename the original TLI.getShiftAmountTy() to
      TLI.getScalarShiftAmountTy() and re-define TLI.getShiftAmountTy() to
      return target-specificed scalar type or the same vector type as the
      1st operand.
    - Fix most TICG logic assuming TLI.getShiftAmountTy() a simple scalar
      type.
    
    llvm-svn: 176364
    6af16fc3
Loading