CRIS: Don't apply PATTERN to insn before validation (PR 110144)
commitc15905da939fd5cf6ccc3f19f3ab273525f34f98
authorHans-Peter Nilsson <hp@axis.com>
Wed, 28 Jun 2023 01:01:08 +0000 (28 03:01 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Wed, 28 Jun 2023 21:19:10 +0000 (28 23:19 +0200)
tree3321a201878e365c0d1258ca785eb01eaa033b45
parentd88fd2e1d0720e6f892da9ff48e9a301a7ad0ad4
CRIS: Don't apply PATTERN to insn before validation (PR 110144)

Oops.  The validation was there, but PATTERN was applied
before that.  Noticeable only with rtl-checking (for example
as in the report: "--enable-checking=yes,rtl") as this
statement was only a (one of many) straggling olde-C
declare-and-initialize-at-beginning-of-block thing.

PR target/110144
* config/cris/cris.cc (cris_postdbr_cmpelim): Don't apply PATTERN
to insn before validating it.
gcc/config/cris/cris.cc