[llvm-bugs] [Bug 36387] New: Load from a local value is not hoisted outside of the loop when the value is populated via sret pointer

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 14 17:26:24 PST 2018


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

            Bug ID: 36387
           Summary: Load from a local value is not hoisted outside of the
                    loop when the value is populated via sret pointer
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Global Analyses
          Assignee: unassignedbugs at nondot.org
          Reporter: timshen91 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19864
  --> https://bugs.llvm.org/attachment.cgi?id=19864&action=edit
Test

The attach shows a piece of IR that contains two loads in the loop, while GCC
compiles the original C++ source code down to one load in the loop, the other
one hoisted out of the loop.

I'm not entirely sure if this should be fixed in Clang or LLVM. Put it here to
start with.

-- 
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/20180215/646218c9/attachment.html>


More information about the llvm-bugs mailing list