[NFC][ARMCGP] Use switch in isSupportedValue
commit05356fa8fefb33e06faa803d1be09ecfee85a3e0
authorSam Parker <sam.parker@arm.com>
Wed, 31 Jul 2019 09:34:11 +0000 (31 09:34 +0000)
committerSam Parker <sam.parker@arm.com>
Wed, 31 Jul 2019 09:34:11 +0000 (31 09:34 +0000)
treef76b3aa7236307adc33d0a80153b46fc63e51dc4
parent84858d05c6eb54dbb1b68c89a3e5ead5b2a3bcd7
[NFC][ARMCGP] Use switch in isSupportedValue

Use a switch instead of many isa<> while checking for supported
values. Also be explicit about which cast instructions are supported;
This allows the removal of SIToFP from GenerateSignBits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367402 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMCodeGenPrepare.cpp