-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
Paths
| Differential D31164
[IR] Add AllowContract to FastMathFlags ClosedPublic Authored by anemet on Mar 20 2017, 8:08 PM.
Details Summary -ffp-contract=fast does not currently work with LTO because it's passed as a This is toward fixing PR25721
Diff Detail
Event TimelineComment Actions Needs assembler and bitcode compatibility tests
spatel added inline comments.
anemet added inline comments.
This revision is now accepted and ready to land.Mar 27 2017, 4:10 PM Closed by commit rL298939: [IR] Add AllowContract to FastMathFlags (authored by anemet). · Explain WhyMar 28 2017, 1:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 92521 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
|
Is it the intent to allow this as well : x + x + x -> 3 * x ?