Commit 103d91c7 by Uros Bizjak Committed by Uros Bizjak

re PR target/90552 (attribute((optimize(3))) not overriding -Os)

	PR target/90552
	* config/i386/i386.c (gen_rtx_cost):
	Use ix86_tune_cost instead of ix86_cost.

testsuite/ChangeLog:

	PR target/90552
	* gcc.target/i386/pr90552.c: New test.

From-SVN: r271576
parent 91117603
2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
PR target/90552
* config/i386/i386.c (gen_rtx_cost):
Use ix86_tune_cost instead of ix86_cost.
2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
Michael Meissner <meissner@linux.ibm.com>
Segher Boessenkool <segher@kernel.crashing.org>
......
......@@ -19124,7 +19124,8 @@ ix86_rtx_costs (rtx x, machine_mode mode, int outer_code_i, int opno,
rtx mask;
enum rtx_code code = GET_CODE (x);
enum rtx_code outer_code = (enum rtx_code) outer_code_i;
const struct processor_costs *cost = speed ? ix86_cost : &ix86_size_cost;
const struct processor_costs *cost
= speed ? ix86_tune_cost : &ix86_size_cost;
int src_cost;
switch (code)
......
2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
PR target/90552
* gcc.target/i386/pr90552.c: New test.
2019-05-23 Mark Eggleston <mark.eggleston@codethink.com>
* gfortran.dg/fmt_f_default_field_width_1.f90: Hide REAL(16) behind
......
/* PR target/90552 *
/* { dg-do compile } */
/* { dg-options "-Os" } */
__attribute__((optimize(2)))
int foo (int x)
{
return x / 3;
}
/* { dg-final { scan-assembler-not "idiv" } } */
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