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

            Bug ID: 23213
           Summary: Failure to hoist loop invariant
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 14196
  --> https://llvm.org/bugs/attachment.cgi?id=14196&action=edit
Original C++ Code

LLVM fails to properly optimize the attached code from Mike Acton's talk "How
to Write Code the Compiler Can Actually Optimize".

The issue is that Foo::Bar is inlined into Foo::Baz before Foo::Bar has been
optimized, and LICM/SCEV can't handle the resulting double loop.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to