aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorWenju He <wenju.he@intel.com>2025-09-19 14:15:40 +0800
committerGitHub <noreply@github.com>2025-09-19 14:15:40 +0800
commitdd669c32ec67c1a995134339657ace2a2047c605 (patch)
tree4999e98f5768b20bc176be8c6b27d12d4f0338bc /clang/lib/AST/ByteCode/Compiler.cpp
parent680c657a4f91de215394daa08c7d1ee29a839833 (diff)
downloadllvm-dd669c32ec67c1a995134339657ace2a2047c605.zip
llvm-dd669c32ec67c1a995134339657ace2a2047c605.tar.gz
llvm-dd669c32ec67c1a995134339657ace2a2047c605.tar.bz2
[InferAddressSpaces] Mark ConstantAggregateZero as safe to cast to a ConstantExpr addrspacecast (#159695)
This PR extends isSafeToCastConstAddrSpace to treat ConstantAggregateZero like ConstantPointerNull. Tests shows an extra addrspacecast instruction is removed and icmp pointer vector operand's address space is now inferred. This change is motivated by inspecting the test in commit f7629f5945f6.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions