]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-ssa: Avoid creating duplicated phis
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 24 Oct 2023 10:30:53 +0000 (11:30 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 24 Oct 2023 10:30:53 +0000 (11:30 +0100)
commit3e901615ff16547aaf376e7762d417b0b4d98619
treefae2864c8c191aa50536b5bd4c296e46a3eefbdf
parentd0eb4aceaa93eabd6153853b22e0e8c843de4184
rtl-ssa: Avoid creating duplicated phis

If make_uses_available was called twice for the same use,
we could end up trying to create duplicate definitions for
the same extended live range.

gcc/
* rtl-ssa/blocks.cc (function_info::create_degenerate_phi): Check
whether the requested phi already exists.
gcc/rtl-ssa/blocks.cc