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: unassignedb...@nondot.org
          Reporter: timshe...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to