diff options
author | Eli Friedman <efriedma@quicinc.com> | 2020-06-17 16:35:35 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2020-06-23 16:14:36 -0700 |
commit | 90ad786947cc861756c95238f96c267b2a3c4849 (patch) | |
tree | 1c90a2e18b14b1102b38c5342c9bac41547c068a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 723b5a1785426245e3c56b4666ef526b32be84a9 (diff) | |
download | llvm-90ad786947cc861756c95238f96c267b2a3c4849.zip llvm-90ad786947cc861756c95238f96c267b2a3c4849.tar.gz llvm-90ad786947cc861756c95238f96c267b2a3c4849.tar.bz2 |
[IR] Prefer scalar type for struct indexes in GEP constant expressions.
This has two advantages: one, it's simpler, and two, it doesn't require
heroic pattern matching with scalable vectors.
Also includes a small fix to DataLayout to allow the scalable vector
testcase to work correctly.
Differential Revision: https://reviews.llvm.org/D82061
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions