std::min/max break auto vectorization - by FitzyDog

Status : 


Sign in
to vote
ID 2869507 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 6/28/2016 8:37:59 AM
Access Restriction Public


Any use of std::min/max breaks auto vectorization. 
This does not need to happen.
If I replace any calls to std::min with the trinary operator, auto vectorization works.

a < b ? a : b;   <-- auto vectorizes
std::min(a,b)   <-- does not

Sign in to post a comment.
Posted by Microsoft on 6/28/2016 at 9:25 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If you require immediate assistance with this issue, please contact product support at