Lou
c75b251103
[GVN] Load-store forwaring of scalable store to fixed load. ( #124748 )
...
When storing a scalable vector and loading a fixed-size vector, where
the
scalable vector is known to be larger based on vscale_range, perform
store-to-load forwarding through temporary @llvm.vector.extract calls.
InstCombine then folds the insert/extract pair away.
The usecase is shown in https://godbolt.org/z/KT3sMrMbd , which shows
that clang generates IR that matches this pattern when the
"arm_sve_vector_bits" attribute is used:
```c
typedef svfloat32_t svfloat32_fixed_t
__attribute__((arm_sve_vector_bits(512)));
struct svfloat32_wrapped_t {
svfloat32_fixed_t v;
};
static inline svfloat32_wrapped_t
add(svfloat32_wrapped_t a, svfloat32_wrapped_t b) {
return {svadd_f32_x(svptrue_b32(), a.v, b.v)};
}
svfloat32_wrapped_t
foo(svfloat32_wrapped_t a, svfloat32_wrapped_t b) {
// The IR pattern this patch matches is generated for this return:
return add(a, b);
}
```
2025-01-30 11:49:42 +01:00
..
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-05-30 08:36:44 +02:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-05-19 14:59:03 +01:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-07-12 11:17:45 +01:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-12-09 16:44:05 +01:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2025-01-29 16:56:47 +01:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:39:53 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2025-01-29 16:56:47 +01:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-27 11:41:34 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-07-03 20:18:51 +08:00
2024-08-14 08:18:33 +01:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-11-08 16:00:48 +08:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2024-03-14 21:49:45 +00:00
2024-08-14 08:18:33 +01:00
2024-03-14 21:49:45 +00:00
2024-11-20 19:31:16 +00:00
2024-11-26 20:50:54 +00:00
2024-03-14 21:49:45 +00:00
2025-01-29 16:56:47 +01:00
2025-01-30 11:49:42 +01:00