]> granicus.if.org Git - llvm/commit
[IR] Add AllowContract to FastMathFlags
authorAdam Nemet <anemet@apple.com>
Tue, 28 Mar 2017 20:11:52 +0000 (20:11 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 28 Mar 2017 20:11:52 +0000 (20:11 +0000)
commit5c57c1108edaf065bc7d288d6024cad3aec3204a
tree70bfb6769f38da5da687968e6bff55b991ec3700
parentd707b92e85f425bc8a50aed76bc1045957341376
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298939 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
docs/LangRef.rst
include/llvm/IR/Instruction.h
include/llvm/IR/Operator.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.h
lib/AsmParser/LLToken.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/IR/AsmWriter.cpp
lib/IR/Instruction.cpp
test/Assembler/fast-math-flags.ll
test/Bitcode/compatibility.ll
unittests/IR/IRBuilderTest.cpp