https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119547
--- Comment #1 from 曾治金 <zhijin.zeng at spacemit dot com> --- I think this issue has nothing to do with the logical-op-non-short-circuit parameter and it is a bug of risc-v vsetvl pass. The risc-v vsetvl pass use lcm algorithm to find the suitable place to insert vsetvl instruction. In the opencv test case, risc-v vsetvl pass should not insert a vsetvl instruction in BB32, otherwise it will override the exit condition of the loop in BB33.