]> git.ipfire.org Git - thirdparty/gcc.git/commit
rtl-optimization/119689 - compare-debug failure with LRA
authorRichard Biener <rguenther@suse.de>
Wed, 9 Apr 2025 12:36:19 +0000 (14:36 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 13 Apr 2025 15:09:35 +0000 (17:09 +0200)
commit31e31bbeea657496eaa2d8bf629f6e61c6cd1266
tree28fb646187f495ca6f9a72080db8cef807fd6f73
parentdc93babdcceb4293e4a64c0770786dc8aefc1a4e
rtl-optimization/119689 - compare-debug failure with LRA

The previous change to fix LRA rematerialization broke compare-debug
for i586 bootstrap.  Fixed by using prev_nonnote_nondebug_insn
instead of prev_nonnote_insn.

PR rtl-optimization/119689
PR rtl-optimization/115568
* lra-remat.cc (create_cands): Use prev_nonnote_nondebug_insn
to check whether insn2 is directly before insn.

* g++.target/i386/pr119689.C: New testcase.

(cherry picked from commit 088887de7717a22b1503760e9b79dfbe22a0f428)
gcc/lra-remat.cc
gcc/testsuite/g++.target/i386/pr119689.C [new file with mode: 0644]