[PATCH] D85432: Hexagon/opaque-ptr: avoid getPointerElementType() in HexagonCommonGEP. NFCI.

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 06:37:32 PDT 2020


t.p.northover created this revision.
Herald added subscribers: hiraditya, mcrosier.
Herald added a project: LLVM.
t.p.northover requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85432

Files:
  llvm/lib/Target/Hexagon/HexagonCommonGEP.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85432.283593.patch
Type: text/x-patch
Size: 5320 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/f703e126/attachment.bin>


More information about the llvm-commits mailing list