https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119689
--- Comment #19 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Uros Bizjak <u...@gcc.gnu.org>: https://gcc.gnu.org/g:1a2e39a5349a36deea33f5fb078edfe658daaf50 commit r13-9521-g1a2e39a5349a36deea33f5fb078edfe658daaf50 Author: Richard Biener <rguent...@suse.de> Date: Wed Apr 9 14:36:19 2025 +0200 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)