[llvm-bugs] [Bug 50735] Missing optimization for member function with const attribute

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 23 04:44:03 PDT 2021


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

Roman Lebedev <lebedev.ri at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|REOPENED                    |RESOLVED
                 CC|                            |lebedev.ri at gmail.com

--- Comment #6 from Roman Lebedev <lebedev.ri at gmail.com> ---
David is correct.
Consider this: https://godbolt.org/z/4Mqz77YYe
const-qualification on the member function does not allow the optimizations you
hope it does.

-- 
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/20210623/65d219fa/attachment.html>


More information about the llvm-bugs mailing list