[llvm-bugs] [Bug 43353] New: std::visit indirect call not folded in a loop

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 18 13:02:59 PDT 2019


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

            Bug ID: 43353
           Summary: std::visit indirect call not folded in a loop
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: brycelelbach at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

In https://godbolt.org/z/zTm190 the first std::visit gets folded and
eliminated, however the second within the loop does not. Analysis shows that
the optimizer doesn't constant fold the "vtable" access in the loop, while it
does without the loop.

-- 
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/20190918/f1394340/attachment.html>


More information about the llvm-bugs mailing list