[NFC][ARMCGP] Use switch in isSupportedValue
authorSam Parker <sam.parker@arm.com>
Wed, 31 Jul 2019 09:34:11 +0000 (09:34 +0000)
committerSam Parker <sam.parker@arm.com>
Wed, 31 Jul 2019 09:34:11 +0000 (09:34 +0000)
commit5ea07f7c072c10c517cae51e67d84f711f0007ed
tree3940ec81086c955e88c6cc707503d9265a9d2715
parent189efe295b6e843c53c172e9f26436f9e8434d21
[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.

llvm-svn: 367402
llvm/lib/Target/ARM/ARMCodeGenPrepare.cpp