Commit 83c191e1 by Hariharan Sandanagobalane Committed by Hariharan Sandanagobalane

picochip.c: Removed profiling support.

        * config/picochip/picochip.c: Removed profiling support.
        * config/picochip/picochip.md: Removed profiling instruction.
        * config/picochip/picochip.h: Removed profiling builtin.

From-SVN: r144884
parent f38095f3
2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
* config/picochip/picochip.c: Removed profiling support.
* config/picochip/picochip.md: Removed profiling instruction.
* config/picochip/picochip.h: Removed profiling builtin.
2009-03-16 Joseph Myers <joseph@codesourcery.com> 2009-03-16 Joseph Myers <joseph@codesourcery.com>
* doc/install.texi (--with-host-libstdcxx): Document. * doc/install.texi (--with-host-libstdcxx): Document.
......
...@@ -3898,23 +3898,6 @@ picochip_generate_halt (void) ...@@ -3898,23 +3898,6 @@ picochip_generate_halt (void)
return const0_rtx; return const0_rtx;
} }
static rtx
picochip_generate_profile (tree arglist)
{
tree arg0 = TREE_VALUE (arglist);
rtx op0 = expand_expr (arg0, NULL_RTX, VOIDmode, 0);
start_sequence();
emit_insn (gen_profile (op0));
rtx insns = get_insns();
end_sequence();
emit_insn (insns);
return const0_rtx;
}
/* Initialise the builtin functions. Start by initialising /* Initialise the builtin functions. Start by initialising
descriptions of different types of functions (e.g., void fn(int), descriptions of different types of functions (e.g., void fn(int),
int fn(void)), and then use these to define the builtins. */ int fn(void)), and then use these to define the builtins. */
...@@ -3996,14 +3979,6 @@ picochip_init_builtins (void) ...@@ -3996,14 +3979,6 @@ picochip_init_builtins (void)
BUILT_IN_MD, NULL, NULL_TREE); BUILT_IN_MD, NULL, NULL_TREE);
/* Initialise the bit reverse function. */ /* Initialise the bit reverse function. */
add_builtin_function ("__builtin_profile", void_ftype_int,
PICOCHIP_BUILTIN_PROFILE, BUILT_IN_MD, NULL,
NULL_TREE);
add_builtin_function ("picoProfile", void_ftype_int,
PICOCHIP_BUILTIN_PROFILE, BUILT_IN_MD, NULL,
NULL_TREE);
/* Initialise the bit reverse function. */
add_builtin_function ("__builtin_brev", unsigned_ftype_unsigned, add_builtin_function ("__builtin_brev", unsigned_ftype_unsigned,
PICOCHIP_BUILTIN_BREV, BUILT_IN_MD, NULL, PICOCHIP_BUILTIN_BREV, BUILT_IN_MD, NULL,
NULL_TREE); NULL_TREE);
...@@ -4135,9 +4110,6 @@ picochip_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED, ...@@ -4135,9 +4110,6 @@ picochip_expand_builtin (tree exp, rtx target, rtx subtarget ATTRIBUTE_UNUSED,
case PICOCHIP_BUILTIN_HALT: case PICOCHIP_BUILTIN_HALT:
return picochip_generate_halt (); return picochip_generate_halt ();
case PICOCHIP_BUILTIN_PROFILE:
return picochip_generate_profile (arglist);
default: default:
gcc_unreachable(); gcc_unreachable();
......
...@@ -736,7 +736,6 @@ enum picochip_builtins ...@@ -736,7 +736,6 @@ enum picochip_builtins
PICOCHIP_BUILTIN_PUT_ARRAY, PICOCHIP_BUILTIN_PUT_ARRAY,
PICOCHIP_BUILTIN_TESTPORT_ARRAY, PICOCHIP_BUILTIN_TESTPORT_ARRAY,
PICOCHIP_BUILTIN_ASRI, PICOCHIP_BUILTIN_ASRI,
PICOCHIP_BUILTIN_PROFILE,
PICOCHIP_BUILTIN_HALT PICOCHIP_BUILTIN_HALT
}; };
......
...@@ -111,9 +111,6 @@ ...@@ -111,9 +111,6 @@
; Internal TSTPORT instruction, used to generate a single TSTPORT ; Internal TSTPORT instruction, used to generate a single TSTPORT
; instruction for use in the testport branch split. ; instruction for use in the testport branch split.
(UNSPEC_INTERNAL_TESTPORT 19) (UNSPEC_INTERNAL_TESTPORT 19)
; instruction for use in the profile based optimizations.
(UNSPEC_INTERNAL_PROFILE 20)
] ]
) )
...@@ -2228,14 +2225,6 @@ ...@@ -2228,14 +2225,6 @@
[(set_attr "length" "1") [(set_attr "length" "1")
(set_attr "type" "unknown")]) (set_attr "type" "unknown")])
(define_insn "profile"
[(unspec_volatile [(match_operand:HI 0 "const_int_operand" "i")]
UNSPEC_INTERNAL_PROFILE)]
""
"PROFILE_DUMMY %0 \t// (profile instruction %0)"
[(set_attr "length" "1")
(set_attr "type" "unknown")])
(define_insn "internal_testport" (define_insn "internal_testport"
[(set (reg:CC CC_REGNUM) [(set (reg:CC CC_REGNUM)
(unspec_volatile:CC [(match_operand:HI 0 "const_int_operand" "i")] (unspec_volatile:CC [(match_operand:HI 0 "const_int_operand" "i")]
......
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