This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Notice how we're doing a final bit of validation -- constrain_operands -- here rather than in the validate routines. We're assuming that if this extra validation fails, we can simply call validate_replace_rtx again to revert the change. But this isn't always true, because the validation routines can "canonicalise" the resulting insn. It would be more robust (and cleaner) to treat this replacement in the same way as post-reload ones, and do the constrain_operands in recog.c:insn_invalid_p.
- if (! constrain_operands (1)) + if (! constrain_operands (reload_completed))
Attachment:
pr37053.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |