[DAG][AArch64] Fix truncated vscale constant types
authorDavid Green <david.green@arm.com>
Thu, 20 Jul 2023 08:12:05 +0000 (09:12 +0100)
committerDavid Green <david.green@arm.com>
Thu, 20 Jul 2023 08:12:05 +0000 (09:12 +0100)
commit0c41c59deebc25682f85175aa92e5fafa1c619ef
tree3408814ee25368d9528bb4e55493df017ecf7431
parent8b655e1f0a70aeff26c25798eb1951d6b9b9e236
[DAG][AArch64] Fix truncated vscale constant types

It appears that vscale values truncated to i1 causes mismatches in the constant
types when created in getNode. https://godbolt.org/z/TaaTo86ne.

Differential Revision: https://reviews.llvm.org/D155626
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/AArch64/sve-vscale.ll