diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-01-19 01:09:15 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-01-19 01:09:15 -0300 |
commit | 3c99493bf39a7fef9213e6f5af94b78bb15fcfdc (patch) | |
tree | 8b1d0fb468fa1bb49b22e43c2df1bd6070bd3b52 /gcc/selftest.h | |
parent | 9f98cfa51b416a2b40884b7d5202eb4daa801ec0 (diff) | |
download | gcc-3c99493bf39a7fef9213e6f5af94b78bb15fcfdc.zip gcc-3c99493bf39a7fef9213e6f5af94b78bb15fcfdc.tar.gz gcc-3c99493bf39a7fef9213e6f5af94b78bb15fcfdc.tar.bz2 |
[PR106746] drop cselib addr lookup in debug insn mem
The testcase used to get scheduled differently depending on the
presence of debug insns with MEMs. It's not clear to me why those
MEMs affected scheduling, but the cselib pre-canonicalization of the
MEM address is not used at all when analyzing debug insns, so the
memory allocation and lookup are pure waste. Somehow, avoiding that
waste fixes the problem, or makes it go latent.
for gcc/ChangeLog
PR debug/106746
* sched-deps.cc (sched_analyze_2): Skip cselib address lookup
within debug insns.
for gcc/testsuite/ChangeLog
PR debug/106746
* gcc.target/i386/pr106746.c: New.
Diffstat (limited to 'gcc/selftest.h')
0 files changed, 0 insertions, 0 deletions