]> git.ipfire.org Git - thirdparty/gcc.git/commit
Handle bitop with INTEGER_CST in analyze_and_compute_bitop_with_inv_effect.
authorliuhongt <hongtao.liu@intel.com>
Mon, 30 Oct 2023 07:43:48 +0000 (15:43 +0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 14 Nov 2023 01:27:20 +0000 (09:27 +0800)
commitfd1596f9962569afff6c9298a7c79686c6950bef
tree18107f8ed10d735b92106e8ef1aca52ce3127bb2
parentd22b87864e5d476535b75098e20f8d8fdaab4f8f
Handle bitop with INTEGER_CST in analyze_and_compute_bitop_with_inv_effect.

analyze_and_compute_bitop_with_inv_effect assumes the first operand is
loop invariant which is not the case when it's INTEGER_CST.

gcc/ChangeLog:

PR tree-optimization/105735
PR tree-optimization/111972
* tree-scalar-evolution.cc
(analyze_and_compute_bitop_with_inv_effect): Handle bitop with
INTEGER_CST.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr105735-3.c: New test.
gcc/testsuite/gcc.target/i386/pr105735-3.c [new file with mode: 0644]
gcc/tree-scalar-evolution.cc