]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR tree-optimization/81396
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2017 08:14:16 +0000 (08:14 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Jul 2017 08:14:16 +0000 (08:14 +0000)
commite20b054db9e36b194c51eb372b0a8008c5efe867
treece61c2221126093bbe0151b30cada1ee8d593428
parent338347527ed6694a8c4d831dc2cffe33d89a6d4f
PR tree-optimization/81396
* tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
(init_symbolic_number): Initialize it to 1.
(perform_symbolic_merge): Add n_ops from both operands into the new
n_ops.
(find_bswap_or_nop): Don't consider n->n == cmpnop computations
without base_addr as useless if they need more than one operation.
(bswap_replace): Handle !bswap case for NULL base_addr.

* gcc.dg/tree-ssa/pr81396.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250257 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr81396.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c