hev 5f5ad95886
[LoongArch] Mark VREPLGR2VR/XVREPLGR2VR as rematerializable to reduce register pressure (#187431)
The VREPLGR2VR and XVREPLGR2VR instruction families replicate a scalar
general-purpose register value into all elements of a vector register.
These instructions are side-effect free and relatively cheap, with their
result depending only on the input register.

Mark them as isReMaterializable to allow the register allocator to
recompute the value when profitable instead of spilling and reloading it
from memory.

This can help reduce register pressure and avoid unnecessary memory
traffic in vectorized code.
2026-03-23 21:40:41 +08:00
..