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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to