llvm-project
a498e642 - [LV] Cost EVL width-adjusting zext/trunc as free (#225016)

Commit
65 days ago
[LV] Cost EVL width-adjusting zext/trunc as free (#225016) With EVL tail folding, the scalar zext/trunc that adjusts the i32 ExplicitVectorLength to the canonical IV type was priced as a regular cast (cost 1). It never lowers to an instruction, only feeding the (free) IV increment and AVL decrement, so the phantom cost dropped borderline loops such as TSVC s351 on RV64 to VF 1. Here we return 0 for such casts so that we don't over-estimate the cost. Fixes #224987 Assisted-by: TRAE CLI (Opus 4.8)
Author
Parents
Loading