]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Fix loop invariant check
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Tue, 9 Jan 2024 01:24:53 +0000 (09:24 +0800)
committerPan Li <pan2.li@intel.com>
Tue, 9 Jan 2024 10:22:14 +0000 (18:22 +0800)
commitdb584633e600840619bfb821d8293094ef26a668
tree762cc680bc87c5d44fc7c59b4fb09ff45ca0e5ee
parent1413af02d62182bc1e19698aaa4dae406f8f13bf
RISC-V: Fix loop invariant check

As Robin suggested, remove gimple_uid check which is sufficient for our need.

Tested on both RV32/RV64 no regression, ok for trunk ?

gcc/ChangeLog:

* config/riscv/riscv-vector-costs.cc (loop_invariant_op_p): Fix loop invariant check.
gcc/config/riscv/riscv-vector-costs.cc