aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorRoman Zhuykov <zhroma@ispras.ru>2020-12-05 18:45:27 +0300
committerRoman Zhuykov <zhroma@ispras.ru>2020-12-05 18:45:27 +0300
commit4eb8f93d026eaa1de9b4820337069f3ce3465cd0 (patch)
tree634fd95b9a60f6e2a837980a61318d109a29605a /gcc/reload.c
parent7ae210d5db5eb96989b2f639e65678b5597e61f0 (diff)
downloadgcc-4eb8f93d026eaa1de9b4820337069f3ce3465cd0.zip
gcc-4eb8f93d026eaa1de9b4820337069f3ce3465cd0.tar.gz
gcc-4eb8f93d026eaa1de9b4820337069f3ce3465cd0.tar.bz2
modulo-sched: Carefully process loop counter initialization [PR97421]
Do not allow direct adjustment of pre-header initialization instruction for count register if is read in some instruction below in that basic block. gcc/ChangeLog: PR rtl-optimization/97421 * modulo-sched.c (generate_prolog_epilog): Remove forward declaration, adjust last argument name and type. (const_iteration_count): Add bool pointer parameter to return whether count register is read in pre-header after its initialization. (sms_schedule): Fix count register initialization adjustment procedure according to what const_iteration_count said. gcc/testsuite/ChangeLog: PR rtl-optimization/97421 * gcc.c-torture/execute/pr97421-1.c: New test. * gcc.c-torture/execute/pr97421-2.c: New test. * gcc.c-torture/execute/pr97421-3.c: New test.
Diffstat (limited to 'gcc/reload.c')
0 files changed, 0 insertions, 0 deletions