Changes between Version 8 and Version 9 of SIMDVectorExampleInLLVM


Ignore:
Timestamp:
Oct 25, 2011 8:39:55 PM (4 years ago)
Author:
pmonday
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SIMDVectorExampleInLLVM

    v8 v9  
    326326}}} 
    327327 
    328 Timing the execution of the bytecodes yields: 
    329  
    330  
     328Timing the execution of the optimized vs. non-optimized bytecodes yields: 
     329 
     330Finally, a note on converting from arrays to vectors and subsequently optimizing to use vector adds.  The simplest way to do this was to: 
     331- convert the code to multiply 4 of the array values at a time 
     332 - convert the array types to vector ([4000 x float] becomes <4000 x float>), the program will work AS-IS with this simple conversion 
     333 - work through the loop again to move to a load of the proper location in the vector to a packed vector, then do the fadd of the vectors 
     334 
     335