[all-commits] [llvm/llvm-project] cd9e1a: [Constants][PowerPC] Check exactlyValue for ppc_fp...

jsji via All-commits all-commits at lists.llvm.org
Thu Jun 3 13:31:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd9e1a020cf0902e79ae1178cc4b93f5c5ce9381
      https://github.com/llvm/llvm-project/commit/cd9e1a020cf0902e79ae1178cc4b93f5c5ce9381
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-06-03 (Thu, 03 Jun 2021)

  Changed paths:
    M llvm/lib/IR/Constants.cpp
    M llvm/test/CodeGen/PowerPC/ppc_fp128-bcwriter.ll

  Log Message:
  -----------
  [Constants][PowerPC] Check exactlyValue for ppc_fp128 in isNullValue

 PPC_FP128 determines isZero/isNan/isInf using high-order double value
 only. Checking isZero/isNegative might return the isNullValue unexpectedly.
 eg:
   0xM0000000000000000FFFFFFFFFFFFFFFFF

isZero, but it is not NullValue.

Reviewed By: efriedma

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




More information about the All-commits mailing list