Revert "Revert "[FPEnv] Teach the IRBuilder about invoke's correct use of the strictf...
authorKevin P. Neal <kevin.neal@sas.com>
Wed, 16 Dec 2020 19:12:35 +0000 (14:12 -0500)
committerKevin P. Neal <kevin.neal@sas.com>
Fri, 18 Dec 2020 17:42:06 +0000 (12:42 -0500)
commit7fef551cb123d9f1956f8ec7a142bd8a63d25fa9
treeabe0255f835dd556022b9c7693bb88c617e18385
parent2a814cd9e1e8493c6606712d55f9ffdb58396481
Revert "Revert "[FPEnv] Teach the IRBuilder about invoke's correct use of the strictfp attribute.""

Similar to D69312, and documented in D69839, the IRBuilder needs to add
the strictfp attribute to invoke instructions when constrained floating
point is enabled.

This is try 2, with the test corrected.

Differential Revision: https://reviews.llvm.org/D93134
clang/test/CodeGen/exceptions-strictfp.c [new file with mode: 0644]
llvm/include/llvm/IR/IRBuilder.h