[SVE] Ignore scalable vectors in InterleavedLoadCombinePass
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 6 May 2020 10:23:04 +0000 (11:23 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Mon, 18 May 2020 15:35:55 +0000 (16:35 +0100)
commit364c595403c00431374dbcc965b6117e33a7f140
tree9f620f7be22958b78899bac397a46c2e284bd0e8
parent10e2e7de0c0cb73a71eb0047f0a23db1f91361dc
[SVE] Ignore scalable vectors in InterleavedLoadCombinePass

I have changed the pass so that we ignore shuffle vectors with
scalable vector types, and replaced VectorType with FixedVectorType
in the rest of the pass. I couldn't think of an easy way to test
this change, since for scalable vectors we shouldn't be using
shufflevectors for interleaving. This change fixes up some
type size assert warnings I found in the following test:

  CodeGen/AArch64/sve-intrinsics-int-arith-imm.ll

Differential Revision: https://reviews.llvm.org/D79700
llvm/lib/CodeGen/InterleavedLoadCombinePass.cpp