Commit f0050a4b by Uros Bizjak Committed by Uros Bizjak

i386.c (ix86_print_operand): Declare taken and cputaken as bool.

	* config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
	taken and cputaken as bool.

From-SVN: r184903
parent 55b86fb0
......@@ -15,6 +15,11 @@
2012-03-04 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
taken and cputaken as bool.
2012-03-04 Uros Bizjak <ubizjak@gmail.com>
* config/i386/constraints.md (Ya): New internal constraint.
* config/i386/i386.md (zero_extendsidi2): Remove expansion.
(*zero_extendsidi2_rex64): Add x,x alternative.
......
......@@ -14136,7 +14136,8 @@ ix86_print_operand (FILE *file, rtx x, int code)
rtx x;
if (!optimize
|| optimize_function_for_size_p (cfun) || !TARGET_BRANCH_PREDICTION_HINTS)
|| optimize_function_for_size_p (cfun)
|| !TARGET_BRANCH_PREDICTION_HINTS)
return;
x = find_reg_note (current_output_insn, REG_BR_PROB, 0);
......@@ -14147,8 +14148,9 @@ ix86_print_operand (FILE *file, rtx x, int code)
if (pred_val < REG_BR_PROB_BASE * 45 / 100
|| pred_val > REG_BR_PROB_BASE * 55 / 100)
{
int taken = pred_val > REG_BR_PROB_BASE / 2;
int cputaken = final_forward_branch_p (current_output_insn) == 0;
bool taken = pred_val > REG_BR_PROB_BASE / 2;
bool cputaken
= final_forward_branch_p (current_output_insn) == 0;
/* Emit hints only in the case default branch prediction
heuristics would fail. */
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