aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-27 19:12:31 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-27 19:12:31 +0000
commitaf48075062e32c2fd7816af4096d97459c5e5fc2 (patch)
tree73d72c6b54e482f586523348a4e18ce5047d64b1 /gcc/hooks.c
parent3cd4f356e901730e10be2c5f2515e77638d74644 (diff)
downloadgcc-af48075062e32c2fd7816af4096d97459c5e5fc2.zip
gcc-af48075062e32c2fd7816af4096d97459c5e5fc2.tar.gz
gcc-af48075062e32c2fd7816af4096d97459c5e5fc2.tar.bz2
mn10300: Fixes to PARALLEL handling within mn10300_adjust_sched_cost
2014-08-27 David Malcolm <dmalcolm@redhat.com> * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to... (set_is_load_p): ...this, updating to work on a SET pattern rather than an insn. (is_store_insn): Rename to... (set_is_store_p): ...this, updating to work on a SET pattern rather than an insn. (mn10300_adjust_sched_cost): Move call to get_attr_timings from top of function to where it is needed. Rewrite the bogus condition that checks for "insn" and "dep" being PARALLEL to instead use single_set, introducing locals "insn_set" and "dep_set". Given that we only ever returned "cost" for a non-pair of SETs, bail out early if we don't have a pair of SET. Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead use the new locals "insn_set" and "dep_set", and update calls to is_load_insn and is_store_insn to be calls to set_is_load_p and set_is_store_p. From-SVN: r214582
Diffstat (limited to 'gcc/hooks.c')
0 files changed, 0 insertions, 0 deletions