https://bugs.llvm.org/show_bug.cgi?id=44681

            Bug ID: 44681
           Summary: Missed optimization opportunity with globals that are
                    never written to
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: klrehm...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

//////////////////////
long long z = 2325;
long long test() {
    return z;
}
//////////////////////

Am I wrong in believing this could potentially be optimized down? I have no
idea if global variables need to be preserved if they're never written to.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to