re PR tree-optimization/90106 (builtin sqrt() ignoring libm's sqrt call result)
authorJun Ma <JunMa@linux.alibaba.com>
Thu, 16 May 2019 08:21:17 +0000 (08:21 +0000)
committerJun Ma <junma@gcc.gnu.org>
Thu, 16 May 2019 08:21:17 +0000 (08:21 +0000)
commit5486a99614790b4b310fedb774f086222490b2c0
tree27d0ef9c5c491b3deb501657cb30ce0854125fb4
parentfd893bf1e9a5e54a9b0677070a68fc9d96322f94
re PR tree-optimization/90106 (builtin sqrt() ignoring libm's sqrt call result)

PR tree-optimization/90106
* tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
new parameter as new internal function call, also move it to new
basic block.
(use_internal_fn): Pass internal function call to
shrink_wrap_one_built_in_call_with_conds.

gcc/testsuite
* gcc.dg/cdce1.c: Check tailcall code generation after cdce pass.
* gcc.dg/cdce2.c: Likewise.

From-SVN: r271281
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cdce1.c
gcc/testsuite/gcc.dg/cdce2.c
gcc/tree-call-cdce.c