diff options
author | Ju-Zhe Zhong <juzhe.zhong@rivai.ai> | 2023-06-01 12:36:17 +0800 |
---|---|---|
committer | Pan Li <pan2.li@intel.com> | 2023-06-02 19:49:54 +0800 |
commit | bffc52838e393a775e13dc48162669b0f43ebe09 (patch) | |
tree | bd5815bfa42f1b13c4bb97fba5a2fb76233b2cbe /gcc/rtl.h | |
parent | 7bf89a919fdab9e18b7ad3efaa1a79f1d7520ddf (diff) | |
download | gcc-bffc52838e393a775e13dc48162669b0f43ebe09.zip gcc-bffc52838e393a775e13dc48162669b0f43ebe09.tar.gz gcc-bffc52838e393a775e13dc48162669b0f43ebe09.tar.bz2 |
VECT: Change flow of decrement IV
Follow Richi's suggestion, I change current decrement IV flow from:
do {
remain -= MIN (vf, remain);
} while (remain != 0);
into:
do {
old_remain = remain;
len = MIN (vf, remain);
remain -= vf;
} while (old_remain >= vf);
to enhance SCEV.
Include fixes from kewen.
This patch will need to wait for Kewen's test feedback.
Testing on X86 is on-going
Co-Authored by: Kewen Lin <linkw@linux.ibm.com>
PR tree-optimization/109971
gcc/ChangeLog:
* tree-vect-loop-manip.cc (vect_set_loop_controls_directly): Change decrement IV flow.
(vect_set_loop_condition_partial_vectors): Ditto.
Diffstat (limited to 'gcc/rtl.h')
0 files changed, 0 insertions, 0 deletions