aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2024-05-13 19:24:14 +0300
committerDimitar Dimitrov <dimitar@dinux.eu>2024-05-14 22:15:19 +0300
commitfc559584fa5b1e101a4520e88a936246458d5a5d (patch)
tree202d294b5e967d36856c5ad003fea3f13b1e7ff5 /gcc/cp/parser.cc
parent4bfc4585c9935fbde75ccf04e44a15d24f42cde9 (diff)
downloadgcc-fc559584fa5b1e101a4520e88a936246458d5a5d.zip
gcc-fc559584fa5b1e101a4520e88a936246458d5a5d.tar.gz
gcc-fc559584fa5b1e101a4520e88a936246458d5a5d.tar.bz2
pru: Implement TARGET_CLASS_LIKELY_SPILLED_P to fix PR115013
Commit r15-436-g44e7855e did not fix PR115013 for PRU because SMALL_REGISTER_CLASS_P is not returning an accurate value for the PRU backend. Word mode for PRU backend is defined as 8-bit, yet all ALU operations are preferred in 32-bit mode. Thus checking whether a register class contains a single word_mode register would not classify the actually single SImode register classes as small. This affected the multiplication source and destination register classes. Fix by implementing TARGET_CLASS_LIKELY_SPILLED_P to treat all register classes with SImode or smaller size as likely spilled. This in turn corrects the behaviour of SMALL_REGISTER_CLASS_P for PRU. PR rtl-optimization/115013 gcc/ChangeLog: * config/pru/pru.cc (pru_class_likely_spilled_p): Implement to mark classes containing one SImode register as likely spilled. (TARGET_CLASS_LIKELY_SPILLED_P): Define. Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions