[llvm-bugs] [Bug 27524] New: return optimization opportunities

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 25 17:17:28 PDT 2016


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

            Bug ID: 27524
           Summary: return optimization opportunities
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: WebAssembly
          Assignee: unassignedbugs at nondot.org
          Reporter: alonzakai at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The wasm backend currently emits unnecessary returns, which are unnecessary
since control flow goes out of the function anyhow, like a return at the very
end of a function (which can be replaced with nothing, or with the value if
there is one).

On BananaBread, removing such returns eliminates 2906 out of 4142 (70%, 0.3% of
total nodes).

-- 
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/20160426/12b1aae3/attachment.html>


More information about the llvm-bugs mailing list