Issue 52972
Summary [optimaztion] do away with the infinite loop unexpectedly
Labels new issue
Assignees
Reporter vfdff
    clang compiler do away with the infinite loop unexpectedly after optimaztion with -O1,
see detail with https://gcc.godbolt.org/z/eex8rzT9z

--- test.c ----

int startcond;
static int myvar = 1;

int main(void)
{
  startcond = 1;
  if(1 == startcond)
  {
     startcond = 0;
  }
  while(1);
  return 0;
}

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to