WASM SIMD not working. #17597
                  
                    
                      harutyuntagushyan8
                    
                  
                
                  started this conversation in
                General
              
            Replies: 2 comments 1 reply
-
| When I looked out generated wasm file as watt file there is no v128 type which correspond to 128-bit register. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| Are you also passing -O2 or -O3? Without high levels of optimization, the compiler will not autovectorize loops like that. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I can't figure out when simd instruction are generated. I Have double for loop and build with -msimd128 flag but no performance gain.
My code is same as in this link
https://v8.dev/features/simd#:~:text=For%20example%2C%20consider%20the%20following%20function%20that%20multiplies%20the%20elements%20of%20two%20input%20arrays%20together%20and%20stores%20the%20results%20in%20an%20output%20array.
Steps I have done is same.
Beta Was this translation helpful? Give feedback.
All reactions