This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Infer inbounds for more GEPs of dereferenceable pointers
ClosedPublic

Authored by aeubanks on Jun 26 2023, 1:53 PM.

Details

Summary

Use Value::getPointerDereferenceableBytes() instead of hardcoding dereferenceable only for allocas. Allows us to infer inbounds GEPs for other Values like CallInsts and Arguments.

Diff Detail

Event Timeline

aeubanks created this revision.Jun 26 2023, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 1:53 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
aeubanks requested review of this revision.Jun 26 2023, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 26 2023, 1:53 PM

Code changes look fine. Please add a real summary though.

aeubanks edited the summary of this revision. (Show Details)Jun 26 2023, 9:18 PM

better?

nikic accepted this revision.Jun 27 2023, 12:08 AM

LGTM

This revision is now accepted and ready to land.Jun 27 2023, 12:08 AM
This revision was landed with ongoing or failed builds.Jun 27 2023, 9:16 AM
This revision was automatically updated to reflect the committed changes.