[PATCH] D139708: [MemoryBuiltins] Avoid comparing against Type::getInt8PtrTy(0)

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 9 05:28:26 PST 2022


arichardson created this revision.
arichardson added reviewers: durin42, nikic, nlopes.
Herald added subscribers: jrtc27, hiraditya, kristof.beyls.
Herald added a project: All.
arichardson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This does not make sense with opaque pointers, and also caused issues for
CHERI/Morello where hardcoding address-space zero prevented optimization.

Downstream change: https://git.morello-project.org/morello/llvm-project/-/merge_requests/180
Co-authored-by: Silviu Baranga <silviu.baranga at arm.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139708

Files:
  llvm/lib/Analysis/MemoryBuiltins.cpp
  llvm/test/Transforms/InstCombine/malloc-free-addrspace.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139708.481606.patch
Type: text/x-patch
Size: 4173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221209/8f0b99c4/attachment.bin>


More information about the llvm-commits mailing list