grant-arm opened a new pull request #7415: URL: https://github.com/apache/tvm/pull/7415
The type punning in the existing code is undefined behaviour in C. In particular, the existing code fails when running on Arm Cortex-M devices. On Cortex-M, accessing a uint64_t that is not 8-byte aligned generates a hard fault. The GCC bugs page (https://gcc.gnu.org/bugs/) Non-Bugs/C/Casting section provides a good explanation of why "Dereferencing a pointer that violates the aliasing rules results in undefined behavior." Change-Id: I2aecaa220e581af7c91a8bc7886499d70e2aa6f2 Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from [Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers) by @ them in the pull request thread. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
