As noted by @luke (https://reviews.llvm.org/D145953#inline-1409312), we were accounting for the cost of vector element size using vlenb whereas the expression can be constant folded for fixed length vectors.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Weak LGTM in that the logic seems sensible to me, but I've not really worked directly on the vector cost model before.