diff options
author | liuhongt <hongtao.liu@intel.com> | 2022-04-08 11:26:46 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2022-05-13 09:02:48 +0800 |
commit | 8ab4b484153031c407b7d8c760b6a2605da1199a (patch) | |
tree | deaeccc923e04d132dfd3ba6edb77a0fb8c92816 /gcc/gimple-ssa-sprintf.cc | |
parent | 49ace834ab15c1614a96a81005304eae0f2f525e (diff) | |
download | gcc-8ab4b484153031c407b7d8c760b6a2605da1199a.zip gcc-8ab4b484153031c407b7d8c760b6a2605da1199a.tar.gz gcc-8ab4b484153031c407b7d8c760b6a2605da1199a.tar.bz2 |
Strip of a vector load which is only used partially.
Optimize
_4 = VEC_PERM_EXPR <_1, _1, { 4, 5, 6, 7, 4, 5, 6, 7 }>;
_5 = BIT_FIELD_REF <_4, 128, 0>;
to
_5 = BIT_FIELD_REF <_1, 128, 128>;
gcc/ChangeLog:
PR tree-optimization/102583
* tree-ssa-forwprop.cc (simplify_bitfield_ref): Extended to a
contiguous stride in the VEC_PERM_EXPR.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr102583.c: New test.
* gcc.target/i386/pr92645-2.c: Adjust testcase.
* gcc.target/i386/pr92645-3.c: Ditto.
Diffstat (limited to 'gcc/gimple-ssa-sprintf.cc')
0 files changed, 0 insertions, 0 deletions