https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107269
--- Comment #1 from Zhendong Su <zhendong.su at inf dot ethz.ch> --- A related instance: [537] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/13.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=yes --prefix=/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.0 20221014 (experimental) [master r13-3307-g8efc38347a7] (GCC) [538] % [538] % gcctk -O1 small.c; ./a.out [539] % [539] % gcctk -O1 -fno-tree-ccp small.c [540] % timeout -s 9 5 ./a.out Killed [541] % [541] % cat small.c int a, c, d; unsigned b; int main() { int f = 1; L1: c = f; L2: b & f; short i = -f; if (!a) { d = f; f = ~(b % f); if (d > -1) goto L2; } f = i; if (a) goto L1; int *j = &f; return 0; }