This patch is inspired by D111433. It would affect the performance under
strict FP mode. But it preserves the correct rounding behavior accross
function calls.
Fixes #59305
Differential D139549
[X86][ConstraintFP] Model `MXCSR` for function call pengfei on Dec 7 2022, 8:56 AM. Authored by
Details This patch is inspired by D111433. It would affect the performance under Fixes #59305
Diff Detail
Event Timeline
|
The function name is a bit misleading, maybe getFPEnvironmentRegisters or some thing like that?
If this function lists FP environment registers that can be changed by a call, then any FP control mode register, not only rounding control (for example, denormal treatment or precision control) also can be modified. FP status information, like raised exception, also may be changed in the called procedure, so it is reasonable to include relevant registers as well.
MXCSR contains all this information but other architectures may have different registers for such information.