[InstSimplify] sqrt(X) * sqrt(X) --> X
authorSanjay Patel <spatel@rotateright.com>
Fri, 23 Feb 2018 22:20:13 +0000 (22:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 23 Feb 2018 22:20:13 +0000 (22:20 +0000)
commitdb53d1847bcc7900ca351144806c93375f4bd3e1
tree7d4dc1e302fe19629fe7710897033305859a802c
parentebc6bc8188c06cb89f01d338004bb4ef55a692f9
[InstSimplify] sqrt(X) * sqrt(X) --> X

This was misplaced in InstCombine. We can loosen the FMF as a follow-up step.

llvm-svn: 325965
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/fmul.ll
llvm/test/Transforms/InstSimplify/fast-math.ll