Johan Engelen
Johan Engelen
Non-optimized code is by definition sub-optimal. The double load is probably happening to simplify compiler implementation. I doubt whether it is worth spending time to eliminate it, as it will...
I want to mark this "won't fix". Can you elaborate on your rationale? Non-optimized code is by definition sub-optimal, helping reduce compiler implementation complexity (and decreasing chance of codegen bugs...
> Is there a way to add this attribute to a function pointer type? No there isn't yet: https://d.godbolt.org/z/bG1xzsr9b
There should also be a semantic analysis check for identical calling conventions (function and pointer) on function pointer assignment.
> Is there a way to call one with inline LLVM IR currently? I can't find much documentation about it unfortunately. I think so yes. You can add the calling...
You can also view the AST coming from DMD that LDC operates on; there is no difference with the source input code (i.e. still the ternary expression without extra intermediaries)....
What's the failure? We need some more info to fix this. (a reproducing testcase would be best)
Would a text like this cover it and be correct? **Platform Support** - Windows: Linking with the sanitizer runtime libraries (`-fsanitize=...`) requires VS2022 or newer (see #4349).
CMake 3.25.1 is what CI uses, so that is for sure working. CMake 3.18 was also working on my machine here (>year ago). Please add anything you find to the...
What version of LDC are you using? I cannot match the CMake reported line numbers with LDC master.