re PR tree-optimization/71016 (Redundant sign extension with conditional __builtin_clzl)
authorJakub Jelinek <jakub@redhat.com>
Thu, 5 Jan 2017 21:14:19 +0000 (22:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 5 Jan 2017 21:14:19 +0000 (22:14 +0100)
commitcfd719e7769fd43fbfecfc0c8f69d5f05e54169b
treeb56fb744d9f892b66b366fb97ea74b0afeb48d32
parent26f203712b9a90913473a1a75ce6f96783a6ec65
re PR tree-optimization/71016 (Redundant sign extension with conditional __builtin_clzl)

PR tree-optimization/71016
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
factor_out_conditional_conversion.  Formatting fix.
(factor_out_conditional_conversion): Add cond_stmt argument.
If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
Formatting fix.

* gcc.target/i386/pr71016.c: New test.
* gcc.target/aarch64/pr71016.c: New test.
* gcc.dg/tree-ssa/pr66726-3.c: New test.

From-SVN: r244114
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr66726-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/aarch64/pr71016.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr71016.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c