[llvm-bugs] [Bug 40892] New: Large number of locals in zlib output

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 27 12:37:13 PST 2019


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

            Bug ID: 40892
           Summary: Large number of locals in zlib output
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: alonzakai at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 21517
  --> https://bugs.llvm.org/attachment.cgi?id=21517&action=edit
cheerp output for comparison

Comparing to cheerp, the core $deflate function in their output has 7 locals,
while the wasm backend's version has 85. This may explain why the size of the
function is much larger.

I'm not sure what's going on here. One pattern I noticed is constants with one
set and one  get (e.g., 11664 - might help to search for that const). There are
'runs' of such assignments to locals (each with a different value), and they
all have this pattern. They also seem to end up used in the same code area
later. I guess they are a bunch of phis, with the other value being the zero
initialization (does LLVM use that?).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190227/908d5812/attachment.html>


More information about the llvm-bugs mailing list