Force LDC/LLVM to split a struct local (into registers)?
Vladimir Panteleev
thecybershadow.lists at gmail.com
Fri Sep 20 00:14:07 UTC 2019
On Thursday, 19 September 2019 at 23:48:35 UTC, Vladimir
Panteleev wrote:
> This does inline nicely but still precludes encapsulating the
> logic into an "opaque" Hash struct while maintaining
> performance.
Another thing that works is to copy a struct with only scalar
types to the stack:
https://github.com/cybershadow/chunker/commit/inline-hash-2
Then it seems to be nicely get split up, and it does allow
encapsulation, though with a setup and commit step.
More information about the digitalmars-d-ldc
mailing list