[all-commits] [llvm/llvm-project] 4b4529: [LegalizeTypes] In SoftenFloatRes_FP_EXTEND, move ...

topperc via All-commits all-commits at lists.llvm.org
Wed Dec 11 12:48:33 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b452952fed75b87c6768bfc1f558d312c645b02
      https://github.com/llvm/llvm-project/commit/4b452952fed75b87c6768bfc1f558d312c645b02
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2019-12-11 (Wed, 11 Dec 2019)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list