This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/80617] [missed optimization] Storing constant in two possibly-aliased locations


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80617

--- Comment #7 from S. Davis Herring <herring at lanl dot gov> ---
We can extend the C test case (thanks for that) with a shared, non-constant
value (and more savings by having dead code as in the original C++ example):

void foo(int *p,int *q,int x) {
  *q=*p=x;
  if(*p!=x) abort();  /* dead */
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]