aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov-dump.c
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-11-13 15:35:52 +0000
committerJozef Lawrynowicz <jozef.l@mittosystems.com>2020-11-13 15:36:30 +0000
commit54896b10dbe1d4ac90f097d566b7aa14807cec08 (patch)
tree06e411434272c328ecedcba249215873ea875e40 /gcc/gcov-dump.c
parent546c8f955804ad74b0382b012f64e621a02eebde (diff)
downloadgcc-54896b10dbe1d4ac90f097d566b7aa14807cec08.zip
gcc-54896b10dbe1d4ac90f097d566b7aa14807cec08.tar.gz
gcc-54896b10dbe1d4ac90f097d566b7aa14807cec08.tar.bz2
MSP430: Implement TARGET_INSN_COST
The length of an insn can be used to calculate its cost, when optimizing for size. When optimizing for speed, this is a good estimate, since the cycle cost of an MSP430 instruction increases with its length. gcc/ChangeLog: * config/msp430/msp430.c (TARGET_INSN_COST): Define. (msp430_insn_cost): New function. * config/msp430/msp430.h (BRANCH_COST): Define. (LOGICAL_OP_NON_SHORT_CIRCUIT): Define. gcc/testsuite/ChangeLog: * gcc.target/msp430/rtx-cost-O3-default.c: New test. * gcc.target/msp430/rtx-cost-O3-f5series.c: New test. * gcc.target/msp430/rtx-cost-Os-default.c: New test. * gcc.target/msp430/rtx-cost-Os-f5series.c: New test.
Diffstat (limited to 'gcc/gcov-dump.c')
0 files changed, 0 insertions, 0 deletions