[PATCH] D48323: Derive GEP index type from Data Layout (cont)

Elena Demikhovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 25 07:57:52 PDT 2018


delena added a comment.

I looked at the code in SeparateConstOffsetFromGEP::canonicalizeArrayIndicesToPointerSize
The DL->getIntPtrType() does the right job for the "custom" GEP. I added a test that covers canonicalizeArrayIndicesToPointerSize().
I'll try to add a test to the constantOffsetHeuristic() as well.


Repository:
  rL LLVM

https://reviews.llvm.org/D48323





More information about the llvm-commits mailing list