Results 1 to 3 of 3

Thread: LLVM May Enable The SLP Vectorizer By Default

  1. #1
    Join Date
    Jan 2007
    Posts
    13,431

    Default LLVM May Enable The SLP Vectorizer By Default

    Phoronix: LLVM May Enable The SLP Vectorizer By Default

    The LLVM compiler infrastructure may be generating some speedier binaries by default for the -O3 optimization level by turning on the straight-line SLP vectorizer...

    http://www.phoronix.com/vr.php?view=MTQxMDk

  2. #2
    Join Date
    Jan 2012
    Posts
    173

    Default

    Vectorize all the loops!

  3. #3
    Join Date
    Mar 2013
    Posts
    17

    Default

    Quote Originally Posted by varikonniemi View Post
    Vectorize all the loops!
    The loops are ALREADY vectorized. This is about vectorizing code that is NOT in loops.

    The essential ideas behind this have been working for a while now. The essential bottleneck has been a good cost model. The problem is that to aggregate random more-or-less uncorrelated operations into a vector operation requires a fair bit of marshaling to load the data into vectors, then to unpack it at the end. Frequently the cost of these marshaling operations is higher than the time save by doing a whole of adds or multiplies or whatever as a vector op. Hence the need for an accurate cost model which is neither too optimistic about costs (so that you frequently vectorize when you shouldn't) nor too pessimistic (so you miss out on vectorizing when it would be a win).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •