This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/66463] New: review uses of call_used_regs and regs_invalidated_by_call
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Jun 2015 17:22:09 +0000
- Subject: [Bug rtl-optimization/66463] New: review uses of call_used_regs and regs_invalidated_by_call
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66463
Bug ID: 66463
Summary: review uses of call_used_regs and
regs_invalidated_by_call
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
With -fipa-ra, we can have a call_used_reg rx that is allocated cross a call.
If we use call_used_regs or regs_invalidated_by_call somewhere during an
optimization after ira, and decide that rx is if fact killed by the call, then
we can get incorrect results. See f.i. PR66444.
We need to review all uses of call_used_regs and regs_invalidated_by_call to
ensure we use the -fipa-ra version if necessary.
F.i., as mentioned in PR66444 comment 2, reload_cse_move2add could use a fix
similar to the one for PR66444.