[Bug tree-optimization/102087] [12 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: in determine_exit_conditions, at tree-ssa-loop-manip.c:1049 since r12-3136-g3673dcf6d6baeb67
guojiufu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Aug 27 14:08:01 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102087
--- Comment #7 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
If step is +-1, or if the 'iv base' is constant, the 'bound' would be
calculated as const.
Otherwise, the 'bound' maybe something like: "(max - base) / step * step +
base". For this case, then runtime cost may need to calculate 'bound'.
I'm wondering if it is beneficial to support this kind of case.
More information about the Gcc-bugs
mailing list