[InstCombine] allow fmul-sqrt folds with less than full -ffast-math
authorSanjay Patel <spatel@rotateright.com>
Fri, 23 Feb 2018 21:16:12 +0000 (21:16 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 23 Feb 2018 21:16:12 +0000 (21:16 +0000)
commitd32104e1b2867a41ba98a57881486fbb6b472e76
tree64fdc548894bfe73ba692c77a6e6fbbb438af2b7
parent545932bec992f5845fa780c26610d08cbb764bc0
[InstCombine] allow fmul-sqrt folds with less than full -ffast-math

Also, add a Builder method for intrinsics to reduce code duplication for clients.

llvm-svn: 325960
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/IR/IRBuilder.cpp
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/fmul-sqrt.ll