[LegalizeTypes] In SoftenFloatRes_FP_EXTEND, move the check for input already being...
authorCraig Topper <craig.topper@intel.com>
Wed, 11 Dec 2019 20:45:54 +0000 (12:45 -0800)
committerCraig Topper <craig.topper@intel.com>
Wed, 11 Dec 2019 20:48:08 +0000 (12:48 -0800)
commit4b452952fed75b87c6768bfc1f558d312c645b02
tree2701c813415b7941d800e1c060da85d16b28527c
parentdaacf57032450079b44b8a7f9b976700d3bc38f8
[LegalizeTypes] In SoftenFloatRes_FP_EXTEND, move the check for input already being promoted above the check for fp16 converting to something other than fp32.

The fp16 to larger than fp32 inserts an extend that need to
re-legalized if fp16 is promoted. But if we check for fp16
promotion first, then we can avoid emiting the fp_extend all
together.
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp