[llvm-bugs] [Bug 50721] [Arm32] Atomic operations on 64-bit operations have invalid bit-cast

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 22 09:32:07 PDT 2021


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

Renato Golin <rengolin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #1 from Renato Golin <rengolin at gmail.com> ---
Looking at other back-ends, all of them create bitcasts to
`Builder.getInt8PtrTy()` which assumes whatever pointer was already in the
default address space. None of them have guards or asserts to check the address
space.

Of course, some of that code is from before address spaces were introduced, but
what I mean is that, since it has been added (many years ago), none of them had
to deal with different address spaces at that level, which means the
expectation David mentioned is pervasive and historical.

I don't think we need any special treatment of bitcasts in the ARM back-end. If
there's anything that needs to be encoded, it should be at a higher level.

-- 
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/20210622/17903252/attachment-0001.html>


More information about the llvm-bugs mailing list