This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/83726] [8 Regression] ICE: in final_scan_insn, at final.c:3063
- From: "wilco 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 Jan 2018 12:18:24 +0000
- Subject: [Bug target/83726] [8 Regression] ICE: in final_scan_insn, at final.c:3063
- Auto-submitted: auto-generated
- References: <bug-83726-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83726
--- Comment #3 from Wilco <wilco at gcc dot gnu.org> ---
This is related with PR82964/82974, looks like same underlying issue. I have a
patch which changes the constraint, and that fixes this issue too. It's not
obvious to me whether legitimate_constant_p should be a subset of the
constraint or not. For rematerialization to work, it needs to return true for
any constants that can be cheaply rematerialized. That includes literal loads,
ie. constants that don't match immediate constraints.