Re: [18/23] recog: Add an RAII class for undoing insn changes

2020-11-25 Thread Jeff Law via Gcc-patches
On 11/13/20 1:20 AM, Richard Sandiford via Gcc-patches wrote: > When using validate_change to make a group of changes, you have > to remember to cancel them if something goes wrong. This patch > adds an RAII class to make that easier. See the comments in the > patch for details and examples. >

[18/23] recog: Add an RAII class for undoing insn changes

2020-11-13 Thread Richard Sandiford via Gcc-patches
When using validate_change to make a group of changes, you have to remember to cancel them if something goes wrong. This patch adds an RAII class to make that easier. See the comments in the patch for details and examples. gcc/ * recog.h (insn_change_watermark): New class. --- gcc/recog