[InstCombine] Explicitly check for scalable TypeSize.
authorCraig Topper <craig.topper@sifive.com>
Mon, 24 Oct 2022 18:35:24 +0000 (11:35 -0700)
committerCraig Topper <craig.topper@sifive.com>
Mon, 24 Oct 2022 19:29:06 +0000 (12:29 -0700)
commit1edc51b56a0c27db5561d7bb117918f88c28780a
tree7db49d578ba70105216cdfb349c8449e9ea4eb8d
parent006bf8d817704eb8addd95d894152a6199dc0718
[InstCombine] Explicitly check for scalable TypeSize.

Instead of assuming it is a fixed size.

Reviewed By: peterwaller-arm

Differential Revision: https://reviews.llvm.org/D136517
llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
llvm/test/Transforms/InstCombine/gep-object-size-less-than-or-equal-typesize.ll [new file with mode: 0644]