This is an archive of the discontinued LLVM Phabricator instance.

[EarlyCSE][OpaquePtr] Check access type when performing DSE
ClosedPublic

Authored by aeubanks on Feb 17 2022, 11:20 AM.

Details

Reviewers
nikic
Group Reviewers
Restricted Project
Commits
rGaf6b9939aac0: [EarlyCSE][OpaquePtr] Check access type when performing DSE
Summary

This will bail out on target specific intrinsics. If those are deemed
important enough for EarlyCSE to handle, we can augment MemIntrinsicInfo
with an access type for TargetTransformInfo::getTgtMemIntrinsic() to
handle.

Diff Detail

Event Timeline

aeubanks created this revision.Feb 17 2022, 11:20 AM
aeubanks requested review of this revision.Feb 17 2022, 11:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2022, 11:20 AM
nikic accepted this revision.Feb 17 2022, 11:52 AM
nikic added a subscriber: nikic.

LGTM

This will bail out on target specific intrinsics. If those are deemed important enough for EarlyCSE to handle, we can augment MemIntrinsicInfo with an access type for TargetTransformInfo::getTgtMemIntrinsic() to handle.

Well, given the lack of test coverage for this case, I daresay it is not important enough...

This revision is now accepted and ready to land.Feb 17 2022, 11:52 AM
This revision was landed with ongoing or failed builds.Feb 17 2022, 12:03 PM
This revision was automatically updated to reflect the committed changes.