| Issue |
180427
|
| Summary |
__builtin_cpu_supports should be converted to a constant based on -march
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Andarwinux
|
__builtin_cpu_supports(“foo”) should be collapsed to a constant if foo is unconditionally enabled by -march, for example __builtin_cpu_supports(“avx2”) should be true with -mavx2.
This will greatly simplify use cases that support both static and runtime dispatch.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs