[SVE][CodeGen] Replace use of TypeSize comparison operator in CreateStackTemporary
authorDavid Sherwood <david.sherwood@arm.com>
Wed, 30 Sep 2020 12:36:59 +0000 (13:36 +0100)
committerDavid Sherwood <david.sherwood@arm.com>
Wed, 21 Oct 2020 07:31:36 +0000 (08:31 +0100)
commit5b17b323a6179d60c58d5048e0679fbbe6782290
tree8c346f0316b317fa980b55b0cbdf6bd6edb21b2f
parentf5815105d2762d68000996bff9041216cd7b732e
[SVE][CodeGen] Replace use of TypeSize comparison operator in CreateStackTemporary

We were previously relying upon the TypeSize comparison operators to
obtain the maximum size of two types, however use of such operators is
being deprecated in favour of making the caller aware that it could
be dealing with scalable vector types. I have changed the code to assert
that the two types have the same scalable property and thus we can
simply take the maximum of the known minimum sizes instead.

Differential Revision: https://reviews.llvm.org/D88563
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp