This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by arichardson on Dec 9 2022, 5:28 AM.

Details

Summary

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@arm.com>

Diff Detail

Event Timeline

arichardson created this revision.Dec 9 2022, 5:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2022, 5:28 AM
arichardson requested review of this revision.Dec 9 2022, 5:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2022, 5:28 AM
lebedev.ri accepted this revision.Dec 9 2022, 5:30 AM
lebedev.ri added a subscriber: lebedev.ri.

LG

This revision is now accepted and ready to land.Dec 9 2022, 5:30 AM
This revision was landed with ongoing or failed builds.Dec 9 2022, 6:01 AM
This revision was automatically updated to reflect the committed changes.