]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/115149 - VOP live and missing PHIs
authorRichard Biener <rguenther@suse.de>
Tue, 21 May 2024 07:48:04 +0000 (09:48 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 21 May 2024 08:52:02 +0000 (10:52 +0200)
commitec9b8bafe20755d13ab9a1b834b5da79ae972c0e
treea021d0a9a725c1c881a1e7de8d8092e42b838997
parent9596f6567ce6fdf94227b97ac28d3549f421ef73
tree-optimization/115149 - VOP live and missing PHIs

The following fixes a bug in vop-live get_live_in which was using
NULL to indicate the first processed edge but at the same time
using it for the case the live-in virtual operand cannot be computed.
The following fixes this, avoiding sinking a load to a place where
we'd have to insert virtual PHIs to make the virtual operand SSA
web OK.

PR tree-optimization/115149
* tree-ssa-live.cc (virtual_operand_live::get_live_in):
Explicitly track the first processed edge.

* gcc.dg/pr115149.c: New testcase.
gcc/testsuite/gcc.dg/pr115149.c [new file with mode: 0644]
gcc/tree-ssa-live.cc