Skip to content
  • Arnold Schwaighofer's avatar
    X86 cost model: Model cost for uitofp and sitofp on SSE2 · f47d2d7f
    Arnold Schwaighofer authored
    The costs are overfitted so that I can still use the legalization factor.
    
    For example the following kernel has about half the throughput vectorized than
    unvectorized when compiled with SSE2. Before this patch we would vectorize it.
    
    unsigned short A[1024];
    double B[1024];
    void f() {
      int i;
      for (i = 0; i < 1024; ++i) {
        B[i] = (double) A[i];
      }
    }
    
    radar://13599001
    
    llvm-svn: 179033
    f47d2d7f
Loading