mirror of git://gcc.gnu.org/git/gcc.git
re PR other/58712 (issues found by --enable-checking=valgrind)
2013-11-12 Vladimir Makarov <vmakarov@redhat.com> PR other/58712 * ira-costs.c (record_operand_costs): Check operands number for the single set. From-SVN: r204720
This commit is contained in:
parent
7f6ada80ce
commit
8eb2533ac6
|
|
@ -1,3 +1,9 @@
|
||||||
|
2013-11-12 Vladimir Makarov <vmakarov@redhat.com>
|
||||||
|
|
||||||
|
PR other/58712
|
||||||
|
* ira-costs.c (record_operand_costs): Check operands number for
|
||||||
|
the single set.
|
||||||
|
|
||||||
2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
|
2013-11-12 Michael Meissner <meissner@linux.vnet.ibm.com>
|
||||||
|
|
||||||
PR target/59054
|
PR target/59054
|
||||||
|
|
|
||||||
|
|
@ -1224,6 +1224,9 @@ record_operand_costs (rtx insn, enum reg_class *pref)
|
||||||
preferred class is very expensive as the source of a copy
|
preferred class is very expensive as the source of a copy
|
||||||
instruction. */
|
instruction. */
|
||||||
if ((set = single_set (insn)) != NULL_RTX
|
if ((set = single_set (insn)) != NULL_RTX
|
||||||
|
/* In rare cases the single set insn might have less 2 operands
|
||||||
|
as the source can be a fixed special reg. */
|
||||||
|
&& recog_data.n_operands > 1
|
||||||
&& ops[0] == SET_DEST (set) && ops[1] == SET_SRC (set))
|
&& ops[0] == SET_DEST (set) && ops[1] == SET_SRC (set))
|
||||||
{
|
{
|
||||||
int regno, other_regno;
|
int regno, other_regno;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue