[InstCombine] fold fdiv with non-splat divisor to fmul: X/C --> X * (1/C)
authorSanjay Patel <spatel@rotateright.com>
Tue, 20 Feb 2018 16:08:15 +0000 (16:08 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 20 Feb 2018 16:08:15 +0000 (16:08 +0000)
commit90f4c8ec299a19ec4c78166865e96c382cb32f92
tree378ad52d152d362847b78da18e1068f8623d789f
parentd3860e66701cf4046c1f3562b631a8bc474f4af4
[InstCombine] fold fdiv with non-splat divisor to fmul: X/C --> X * (1/C)

llvm-svn: 325590
llvm/include/llvm/IR/Constant.h
llvm/lib/IR/Constants.cpp
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/fast-math.ll
llvm/test/Transforms/InstCombine/fdiv.ll