llvm-project
4d2d6a0d - [LoongArch] Type legalize v2f32 loads by using an f64 load and a scalar_to_vector (#164943)

Commit
6 days ago
[LoongArch] Type legalize v2f32 loads by using an f64 load and a scalar_to_vector (#164943) On 64-bit targets the generic legalize will use an i64 load and a scalar_to_vector for us. But on 32-bit targets, i64 isn't legal, and the generic legalizer will end up emitting two 32-bit loads. This patch uses f64 to avoid the splitting entirely and the redundant int->fp conversion.
Author
Parents
Loading