Commit 9c9a11f6 by Uros Bizjak Committed by Uros Bizjak

i386.c (ix86_legitimate_combined_insn): Do not call recog here.

	* config/i386/i386.c (ix86_legitimate_combined_insn): Do not
	call recog here.  Assert that INSN_CODE (insn) is non-negative.

From-SVN: r244478
parent 81e63b63
2017-01-15 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_legitimate_combined_insn): Do not
call recog here. Assert that INSN_CODE (insn) is non-negative.
2017-01-15 Segher Boessenkool <segher@kernel.crashing.org> 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
PR target/72749 PR target/72749
......
...@@ -8125,14 +8125,15 @@ ix86_return_pops_args (tree fundecl, tree funtype, int size) ...@@ -8125,14 +8125,15 @@ ix86_return_pops_args (tree fundecl, tree funtype, int size)
static bool static bool
ix86_legitimate_combined_insn (rtx_insn *insn) ix86_legitimate_combined_insn (rtx_insn *insn)
{ {
int i;
/* Check operand constraints in case hard registers were propagated /* Check operand constraints in case hard registers were propagated
into insn pattern. This check prevents combine pass from into insn pattern. This check prevents combine pass from
generating insn patterns with invalid hard register operands. generating insn patterns with invalid hard register operands.
These invalid insns can eventually confuse reload to error out These invalid insns can eventually confuse reload to error out
with a spill failure. See also PRs 46829 and 46843. */ with a spill failure. See also PRs 46829 and 46843. */
if ((INSN_CODE (insn) = recog (PATTERN (insn), insn, 0)) >= 0)
{ gcc_assert (INSN_CODE (insn) >= 0);
int i;
extract_insn (insn); extract_insn (insn);
preprocess_constraints (insn); preprocess_constraints (insn);
...@@ -8192,7 +8193,6 @@ ix86_legitimate_combined_insn (rtx_insn *insn) ...@@ -8192,7 +8193,6 @@ ix86_legitimate_combined_insn (rtx_insn *insn)
if (!win) if (!win)
return false; return false;
} }
}
return true; return true;
} }
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