Can these type casts (from uchar to schar and back) be cleaned away by some pass before vectorization, or do we need to teach the vectorizer to ignore such type casts?
This was considered as tree-combiner's responsibility. However, I do not know what is the current state and plan of tree-combiner pass. tree-combiner pass, along with other combining activites, will remove unnecessary cast (if possible). - Devang