mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 08:31:38 +00:00
[IR] Add AllowContract to FastMathFlags
-ffp-contract=fast does not currently work with LTO because it's passed as a TargetOption to the backend rather than in the IR. This adds it to FastMathFlags. This is toward fixing PR25721 Differential Revision: https://reviews.llvm.org/D31164 llvm-svn: 298939
This commit is contained in:
1 parent
16af53a395
commit
cd847a8f30
13 files changed
+79
-2
No files matched your search
@@ -971,6 +971,8 @@ static FastMathFlags getDecodedFastMathFlags(unsigned Val) {
|
||||
FMF.setNoSignedZeros();
|
||||
if (0 != (Val & FastMathFlags::AllowReciprocal))
|
||||
FMF.setAllowReciprocal();
|
||||
if (0 != (Val & FastMathFlags::AllowContract))
|
||||
FMF.setAllowContract(true);
|
||||
return FMF;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user