Commit c577822e by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

re PR rtl-optimization/49154 (build fails on cris-elf in libgcc: ICE in…

re PR rtl-optimization/49154 (build fails on cris-elf in libgcc: ICE in setup_pressure_classes, at ira.c:902)

	PR rtl-optimization/49154
	* ira-costs.c (setup_regno_cost_classes_by_mode): If there
	already is a matching slot in the hashtable, assign it to
	classes_ptr.

From-SVN: r174868
parent 54e1e4f7
2011-06-10 Hans-Peter Nilsson <hp@axis.com>
PR rtl-optimization/49154
* ira-costs.c (setup_regno_cost_classes_by_mode): If there
already is a matching slot in the hashtable, assign it to
classes_ptr.
PR rtl-optimization/49154
* doc/tm.texi.in (Register Classes): Document rule for the narrowest
register classes.
* doc/tm.texi: Regenerate.
......
......@@ -299,6 +299,8 @@ setup_regno_cost_classes_by_mode (int regno, enum machine_mode mode)
classes_ptr = setup_cost_classes (&classes);
*slot = classes_ptr;
}
else
classes_ptr = *slot;
cost_classes_mode_cache[mode] = (cost_classes_t) *slot;
}
regno_cost_classes[regno] = classes_ptr;
......
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