On 10/3/25 18:53, Andrew Cooper wrote: > It turns out that using the higher level helpers adjacent like this leads to > terrible code generation. Due to -fno-strict-alising, the store into state-> > invalidates the read_cr4() address calculation (which is really cpu_info->cr4 > under the hood), meaning that it can't be hoisted.
It would be nice if compilers could warn when they could not optimize because of something like this. -- Sincerely, Demi Marie Obenour (she/her/hers)
OpenPGP_0xB288B55FFF9C22C1.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
