arm.c (arm_adjust_cost): Correct logic that tests the return values from recog_memoized().

2003-04-26  Ben Elliston  <bje@wasabisystems.com>

	* config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
	return values from recog_memoized().

From-SVN: r66064
This commit is contained in:
Ben Elliston 2003-04-25 15:24:30 +00:00 committed by Ben Elliston
parent ee8ce6dbe1
commit eda833e3f2
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-04-26 Ben Elliston <bje@wasabisystems.com>
* config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
return values from recog_memoized().
2003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR opt/8705

View File

@ -3474,8 +3474,8 @@ arm_adjust_cost (insn, link, dep, cost)
on precisely how certain input operands are used. */
if (arm_is_xscale
&& REG_NOTE_KIND (link) == 0
&& recog_memoized (insn) < 0
&& recog_memoized (dep) < 0)
&& recog_memoized (insn) >= 0
&& recog_memoized (dep) >= 0)
{
int shift_opnum = get_attr_shift (insn);
enum attr_type attr_type = get_attr_type (dep);