sdesmalen-arm wrote:

> On my system, this increases the compilation time of SemaChecking.cpp from 7 
> seconds to 2 minutes 46 seconds (using clang as a host compiler). That seems 
> excessive. Let's please find a way to not make compilation so slow, and let's 
> consider reverting this until a faster approach is found.

I see the same with GCC. It seems that changing the generated table from:
```
case SVE::BI__builtin_sve_svaba_n_s16: 
  BuiltinType = ArmStreamingCompatible;
  break;
case SVE::BI__builtin_sve_svaba_n_s32: 
  BuiltinType = ArmStreamingCompatible;
  break;
case SVE::BI__builtin_sve_svaba_n_s64: 
  BuiltinType = ArmStreamingCompatible;
  break;
...
```
to
```
case SVE::BI__builtin_sve_svacge_n_f16:
case SVE::BI__builtin_sve_svacge_n_f32:
case SVE::BI__builtin_sve_svacge_n_f64:
...
  BuiltinType = ArmStreamingCompatible;
  break;
```
resolves most of the issue without changing behaviours.

Additionally, it might be good to make the most common streaming-mode for this 
file the default (which for arm_sve.h is streaming-compatible), so that the 
table only has to capture the intrinsics which are explicitly non-streaming or 
streaming.

https://github.com/llvm/llvm-project/pull/74064
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to