]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-phiopt.c
PR tree-optimization/65053
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Feb 2015 23:20:31 +0000 (23:20 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Feb 2015 23:20:31 +0000 (23:20 +0000)
commit18c06fb85577bd89b6c85b762274c03d1a659504
treef6170a20c73ac9690afa1cf444ae8238f2e77498
parentb1380826fb8a17d9847dada23aacaa4d086c7c49
PR tree-optimization/65053
* tree-ssa-phiopt.c (value_replacement): When moving assign before
cond, either reset VR on lhs or set it to phi result VR.

* gcc.c-torture/execute/pr65053-1.c: New test.
* gcc.c-torture/execute/pr65053-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220700 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr65053-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/execute/pr65053-2.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c