[all-commits] [llvm/llvm-project] 9ee90e: [LegalizeTypes] Remove untested code from ExpandIn...

topperc via All-commits all-commits at lists.llvm.org
Tue Jan 14 13:16:41 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ee90ea55c1656b75e40f595dc351fbf667f5b79
      https://github.com/llvm/llvm-project/commit/9ee90ea55c1656b75e40f595dc351fbf667f5b79
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

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

  Log Message:
  -----------
  [LegalizeTypes] Remove untested code from ExpandIntOp_UINT_TO_FP

This code is untested in tree because the "APFloat::semanticsPrecision(sem) >= SrcVT.getSizeInBits() - 1" check is false for most combinations for int and fp types except maybe i32 and f64. For that you would need i32 to be an illegal type, but f64 to be legal and have custom handling for legalizing the split sint_to_fp. The precision check itself was added in 2010 to fix a double rounding issue in the algorithm that would occur if the sint_to_fp was not able to do the conversion without rounding.

Differential Revision: https://reviews.llvm.org/D72728




More information about the All-commits mailing list