llvm-project
cb5445f0 - [RISCV] Lower masked_{u,s}{div,rem} and update TTI (#192543)

Commit
31 days ago
[RISCV] Lower masked_{u,s}{div,rem} and update TTI (#192543) The loop vectorizer will soon emit llvm.masked.udiv intrinsics and friends. The vast majority of the time these will be transformed to vp.udiv on RISC-V thanks to tail folding, but if it doesn't tail fold or uses a fixed VF then it will reach instruction selection. This patch lowers the nodes to the masked pseudo for scalable and fixed vectors, and updates the TTI to account for it.
Author
Parents
Loading