OSDN Git Service

* builtins.c (expand_builtin_expect): New.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Apr 2000 16:49:00 +0000 (16:49 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 17 Apr 2000 16:49:00 +0000 (16:49 +0000)
commit89cfe6e5e9de57da5f37c19da247bb81ce13cca8
tree463f2ea9fd7c3ba92418e1563975dde99f0150de
parentf36193386b67c514b709fba7155e306a1b1559b2
    * builtins.c (expand_builtin_expect): New.
        (expand_builtin): Call it.
        * builtins.def (BUILT_IN_EXPECT): New.
        * c-common.c (c_common_nodes_and_builtins): Declare __builtin_expect.
        * extend.texi: Document it.

        * predict.c (expected_value_to_br_prob): New.
        (find_expected_value): New.
        * basic-block.h (expected_value_to_br_prob): Declare.
        * toplev.c (rest_of_compilation): Invoke it.

        * rtl.h (NOTE_EXPECTED_VALUE): New.
        (NOTE_INSN_EXPECTED_VALUE): New.
        * rtl.c (note_insn_name): Update.
        * print-rtl.c (print_rtx): Reorg NOTE_LINE_NUMBER special
        cases; handle NOTE_INSN_EXPECTED_VALUE.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33211 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/basic-block.h
gcc/builtins.c
gcc/builtins.def
gcc/c-common.c
gcc/extend.texi
gcc/predict.c
gcc/print-rtl.c
gcc/rtl.c
gcc/rtl.h
gcc/toplev.c