[FPEnv][LegalizeTypes] Make ScalarizeVecOp_STRICT_FP_ROUND do its own replacements...
authorCraig Topper <craig.topper@intel.com>
Tue, 17 Dec 2019 23:14:44 +0000 (15:14 -0800)
committerCraig Topper <craig.topper@intel.com>
Tue, 17 Dec 2019 23:17:43 +0000 (15:17 -0800)
commitc36773c78eb52ae0c549dc286a441af0d1b8b712
tree5746c06ff82a5d6ccaa6ad3bea6f99ce8c3a56ae
parentb8ac5894a115987fcc7e871049ec31a8eba66741
[FPEnv][LegalizeTypes] Make ScalarizeVecOp_STRICT_FP_ROUND do its own replacements and return SDValue()

The caller will assert for nodes with more than 2 results unless
we return a null SDValue.

I tried to test this by copying an AArch64 test for ScalarizeVecOp_FP_ROUND.
While it did hit the assert and this commited fixed that. It also
hit a later problem that couldn't be fixed without adding strict
FP support to AArch64.
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp