On 4/9/25 8:40 AM, Richard Biener wrote:
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.

Bootstrapped on i586-linux where the miscompare is gone with this
patch.  Bootstrap and regtest running on x86_64-unknown-linux-gnu.

OK if the latter succeeds?
Yes.  Thank you, Richard.

        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.

Reply via email to