re PR tree-optimization/43491 (Unnecessary temporary for global register variable)
authorBin Cheng <bin.cheng@arm.com>
Fri, 23 Dec 2011 05:43:09 +0000 (05:43 +0000)
committerJoey Ye <jye2@gcc.gnu.org>
Fri, 23 Dec 2011 05:43:09 +0000 (05:43 +0000)
commit2b9ed3bc10e02c3430fa6393b604095cb4bd943a
treedcbbdbfe25be1bb7cb6bb32976e61c401d6ec529
parent994182df2760962dc90ab4f2eace2de84c669133
re PR tree-optimization/43491 (Unnecessary temporary for global register variable)

2011-12-22  Bin Cheng  <bin.cheng@arm.com>
Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43491
* tree-ssa-pre.c (eliminate): Don't replace global register
variable when it is the RHS of a single assign.

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

Co-Authored-By: Richard Guenther <rguenther@suse.de>
From-SVN: r182650
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr43491.c [new file with mode: 0644]
gcc/tree-ssa-pre.c