This is an archive of the discontinued LLVM Phabricator instance.

Hexagon/opaque-ptr: avoid getPointerElementType() in HexagonCommonGEP. NFCI.
Needs ReviewPublic

Authored by t.p.northover on Aug 6 2020, 6:37 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This refactors the code in HexagonCommonGEP to avoid calling getPointerElementType.

I did this by making GepNode always contain the element type, which meant we needed a new flag to distinguish between the an initial (outer array) index and the subsequent destructuring ones.

There shouldn't be any change in behaviour so no tests.

Diff Detail

Event Timeline

t.p.northover created this revision.Aug 6 2020, 6:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2020, 6:37 AM
t.p.northover requested review of this revision.Aug 6 2020, 6:37 AM