[llvm-bugs] [Bug 26997] memset() is optimised out even if followed by asm("":::"memory")

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 19 08:13:37 PDT 2016


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

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |INVALID

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
Buf[1] through buf[255] is deleted as unused. The first element is register
allocated. The memory clobber then no longer affects buf because it is not in
memory. If you want it to, you need to escape buf somewhere. Looks like things
are working as intended.

-- 
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/20160319/cee03bb8/attachment-0001.html>


More information about the llvm-bugs mailing list