HomePhabricator

[SVE] Fix scalable vector bug in DataLayout::getIntPtrType

Authored by david-arm on Jun 22 2020, 6:09 AM.

Description

[SVE] Fix scalable vector bug in DataLayout::getIntPtrType

Fixed an issue in DataLayout::getIntPtrType where we were assuming
the input type was always a fixed vector type, which isn't true.

Added a test that exposed the problem to:

Transforms/InstCombine/vector_gep1.ll

Differential Revision: https://reviews.llvm.org/D82294

Details