[tree-ssa-address] Avoid creating non-canonical RTL in gen_addr_rtx
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 9 Jan 2017 09:42:10 +0000 (09:42 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 9 Jan 2017 09:42:10 +0000 (09:42 +0000)
commitc0d4fec75c36e60c0305c585310a8feb89a04a1d
treeee9556bdb0ca884aec86d32c63e6f09005166501
parent7b1b0cc127d2f29f6ce8158e9e814b99cc5a9304
[tree-ssa-address] Avoid creating non-canonical RTL in gen_addr_rtx

* tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
is const0_rtx.

* gcc.dg/20161219.c: New test.

From-SVN: r244219
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20161219.c [new file with mode: 0644]
gcc/tree-ssa-address.c