This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80160] [7 regression] operand has impossible constraints
- From: "bernds at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Mar 2017 17:55:27 +0000
- Subject: [Bug target/80160] [7 regression] operand has impossible constraints
- Auto-submitted: auto-generated
- References: <bug-80160-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80160
--- Comment #4 from Bernd Schmidt <bernds at gcc dot gnu.org> ---
Perhaps this.
Index: lra-assigns.c
===================================================================
--- lra-assigns.c (revision 246226)
+++ lra-assigns.c (working copy)
@@ -908,7 +908,8 @@ must_not_spill_p (unsigned spill_regno)
does not solve the general case where existing reloads fully
cover a limited register class. */
if (!bitmap_bit_p (&non_reload_pseudos, spill_regno)
- && reg_class_size [reg_preferred_class (spill_regno)] == 1)
+ && reg_class_size [reg_preferred_class (spill_regno)] == 1
+ && reg_alternate_class (spill_regno) == NO_REGS)
return true;
return false;
}