[PATCH] D69798: Implement inlining of strictfp functions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 19 23:31:22 PST 2019


craig.topper added a comment.

In D69798#1792231 <https://reviews.llvm.org/D69798#1792231>, @sepavloff wrote:

> When function that uses default FP environment is inlined into strictfp function, code of the former will be executed in the FP environment set in the strictfp function. To fix this behavior the FP environment should be saved upon entry to the inlined function, FP environment reset to default state, and the saved state must be restored upon leaving the inlined function.


So if the function isn't inlined then the callee will just silently execute in the environment of the caller since the compiler won't save/restore the state?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69798/new/

https://reviews.llvm.org/D69798





More information about the llvm-commits mailing list