[Bug tree-optimization/121894] SRA (and DSE) vs. -ftrivial-auto-var-init=

qinzhao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Sep 12 18:30:40 GMT 2025


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

--- Comment #14 from qinzhao at gcc dot gnu.org ---
with the fix in comment #13, the optimized IR for the testing case in
description is:
void foo ()
{
  int s$b;

  <bb 2> [local count: 1073741824]:
  s$b_6 = .DEFERRED_INIT (4, 1, &"s"[0]);
  bar (2, s$b_6, 3, 4);
  return;

}


More information about the Gcc-bugs mailing list