Commit 015122d8 by Segher Boessenkool Committed by Segher Boessenkool

c6x: Fix for RTL checking


	* config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.

From-SVN: r245721
parent 4173ddaf
2017-02-24 Segher Boessenkool <segher@kernel.crashing.org> 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
* config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
* config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
this_insn if it is an INSN or JUMP_INSN. this_insn if it is an INSN or JUMP_INSN.
(force_offsettable): Look at base, not at addr. (force_offsettable): Look at base, not at addr.
......
...@@ -3799,6 +3799,7 @@ predicate_insn (rtx_insn *insn, rtx cond, bool doit) ...@@ -3799,6 +3799,7 @@ predicate_insn (rtx_insn *insn, rtx cond, bool doit)
{ {
if (doit) if (doit)
{ {
cond = copy_rtx (cond);
rtx newpat = gen_rtx_COND_EXEC (VOIDmode, cond, PATTERN (insn)); rtx newpat = gen_rtx_COND_EXEC (VOIDmode, cond, PATTERN (insn));
PATTERN (insn) = newpat; PATTERN (insn) = newpat;
INSN_CODE (insn) = -1; INSN_CODE (insn) = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment