llvm-project
69e45149 - [GlobalOpt] Do not fold away addrspacecasts which may be runtime operations (#153753)

Commit
137 days ago
[GlobalOpt] Do not fold away addrspacecasts which may be runtime operations (#153753) Specifically in the context of the once-stored transformation, GlobalOpt would strip all pointer casts unconditionally, even though addrspacecasts might be runtime operations. This manifested particularly on CHERI targets. This patch was inspired by an existing change in CHERI LLVM (https://github.com/CHERIoT-Platform/llvm-project/commit/91afa60f17ea1b91e5cdba21a5c90400024b2b6a), but has been reimplemented with updated conventions, and a testcase constructed from scratch.
Author
Parents
Loading