Lines Matching refs:insn

41 #include "insn-config.h"
221 predict_insn (rtx insn, enum br_predictor predictor, int probability)
223 gcc_assert (any_condjump_p (insn));
227 REG_NOTES (insn)
232 REG_NOTES (insn));
235 /* Predict insn by given predictor. */
238 predict_insn_def (rtx insn, enum br_predictor predictor,
246 predict_insn (insn, predictor, probability);
305 /* Return true when we can store prediction on insn INSN.
309 can_predict_insn_p (rtx insn)
311 return (JUMP_P (insn)
312 && any_condjump_p (insn)
313 && EDGE_COUNT (BLOCK_FOR_INSN (insn)->succs) >= 2);
334 invert_br_probabilities (rtx insn)
338 for (note = REG_NOTES (insn); note; note = XEXP (note, 1))
404 combine_predictions_for_insn (rtx insn, basic_block bb)
416 if (!can_predict_insn_p (insn))
422 prob_note = find_reg_note (insn, REG_BR_PROB, 0);
423 pnote = &REG_NOTES (insn);
425 fprintf (dump_file, "Predictions for insn %i bb %i\n", INSN_UID (insn),
430 for (note = REG_NOTES (insn); note; note = XEXP (note, 1))
492 REG_NOTES (insn)
494 GEN_INT (combined_probability), REG_NOTES (insn));
1383 /* __builtin_expect dropped tokens into the insn stream describing expected
1390 rtx insn, cond, ev = NULL_RTX, ev_reg = NULL_RTX;
1392 for (insn = get_insns (); insn ; insn = NEXT_INSN (insn))
1394 switch (GET_CODE (insn))
1398 if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_EXPECTED_VALUE)
1400 ev = NOTE_EXPECTED_VALUE (insn);
1402 delete_insn (insn);
1414 if (!JUMP_P (insn) || ev == NULL_RTX
1415 || ! any_condjump_p (insn))
1421 if (ev && reg_set_p (ev_reg, insn))
1435 cond = XEXP (SET_SRC (pc_set (insn)), 0);
1436 cond = canonicalize_condition (insn, cond, 0, NULL, ev_reg,
1451 predict_insn_def (insn, PRED_BUILTIN_EXPECT,
1770 rtx insn;
1772 for (insn = BB_HEAD (bb); insn != NEXT_INSN (BB_END (bb));
1773 insn = NEXT_INSN (insn))
1774 if (active_insn_p (insn))