commit | 773e04c88366b86a4285f296ab6d632597f07db8 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Mon Apr 08 21:23:50 2019 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Mon Apr 08 21:23:50 2019 +0000 |
tree | 46747a671f3704d6831098c99c2670928f91eafb | |
parent | 9f74df7d5bcd63302e4b8bfb609ed6cb1f0ae9d7 [diff] |
[InstCombine] peek through fdiv to find a squared sqrt A more general canonicalization between fdiv and fmul would not handle this case because that would have to be limited by uses to prevent 2 values from becoming 3 values: (x/y) * (x/y) --> (x*x) / (y*y) (But we probably should still have that limited -- but more general -- canonicalization independently of this change.) llvm-svn: 357943