Use present fast-math flags when applicable in CreateBinOp
authorMichael Ilseman <milseman@apple.com>
Thu, 5 Dec 2013 00:32:09 +0000 (00:32 +0000)
committerMichael Ilseman <milseman@apple.com>
Thu, 5 Dec 2013 00:32:09 +0000 (00:32 +0000)
commitfaf4d59137e85f917f868e784c8d83ccc29c4b7f
tree30f83caa4941d2a4a17ed7203c0e832c01a2d662
parente4b236cf59af0ed1e9cd7e9b1f1f195c5459ebc4
Use present fast-math flags when applicable in CreateBinOp

We were previously not adding fast-math flags through CreateBinOp()
when it happened to be making a floating point binary operator. This
patch updates it to do so similarly to directly calling CreateF*().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196438 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
unittests/IR/IRBuilderTest.cpp