In type legalizing on PowerPC platform, when we are going to truncate normal vectors into vectors with elements whose size is not power of 2, the compiler will hit an assert complaining size-mismatch. Since such situation is rare, I add a check to prevent the trunc being optimized if the size of element is not power of 2.
|1 ↗||(On Diff #211662)|
Checking if it exits successfully with no diagnostics is enough for an assertion fix. Here I just disabled doing the optimization since the occasion is rare.
In case someone would like to do it for such odd vectors in the future, I recommend to keep it as-is. After that, this case can notify and be changed.