Account for high/lo_sum simplification with displacements
authormpf <mpf@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jan 2015 12:31:01 +0000 (12:31 +0000)
committermpf <mpf@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 16 Jan 2015 12:31:01 +0000 (12:31 +0000)
commite0226bda0d50970307f62148d0bbd02999bb6ae8
tree24118a1005abdf80d65240f679378bcda19c1867
parent0a15f066da24c41c88cddf8f6b8e77a1cbf693e4
Account for high/lo_sum simplification with displacements

gcc/
* simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
(high x) y) to y if x and y have the same base.

gcc/testsuite/
* gcc.c-torture/compile/20150108.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219729 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20150108.c [new file with mode: 0644]