[PATCH] Add support for fast-math flags to the FCmp instruction.
James Molloy
james.molloy at arm.com
Fri May 15 06:58:44 PDT 2015
Hi hfinkel, majnemer, chandlerc,
FCmp behaves a lot like a floating-point binary operator in many ways,
and can benefit from fast-math information. Flags such as nsz and nnan
can affect if this fcmp (in combination with a select) can be treated
as a fminnum/fmaxnum operation.
This adds backwards-compatible bitcode support, IR parsing and writing,
LangRef changes and IRBuilder changes. I'll need to audit InstSimplify
and InstCombine in a followup to find places where flags should be
copied.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D9793
Files:
docs/LangRef.rst
include/llvm/IR/IRBuilder.h
include/llvm/IR/Operator.h
lib/AsmParser/LLParser.cpp
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
test/Bitcode/fcmp-fast.ll
unittests/IR/IRBuilderTest.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9793.25866.patch
Type: text/x-patch
Size: 14236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150515/76176c9e/attachment.bin>
More information about the llvm-commits
mailing list