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] | |
working on a S/390 patch optimizing load/store multiple I've noticed that regrename replaces registers without calling recog afterwards. So it happened that a single register out of a PARALLEL block of SETs gets renamed. Because the load_multiple patterns only accept SETs with consecutive registers this insn is invalid after regrename.
The attached patch turns "do_replace" in "try_replace" using validate_change to replace the register along the def-use chain.
Is this the way to go?
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |