[PATCH] D43142: Experimental pass to convert all floating point operations to the equivalent constrained intrinsics

Andy Kaylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 2 14:16:37 PDT 2018


andrew.w.kaylor added a comment.

In https://reviews.llvm.org/D43142#1285856, @cameron.mcinally wrote:

> I think we both agree that it's undefined behavior. If that's correct, then it doesn't really matter what we do after we hit it. So any solution is acceptable...


We still need to control code motion. For instance, if the code checks the status bits before calling the FENV_ACCESS OFF function we can't have FP operations that are inlined hoisted above the status bit check.


https://reviews.llvm.org/D43142





More information about the llvm-commits mailing list