[PATCH] D55950: [ConstantFolding] Fold undef for integer intrinsics

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 21 06:51:04 PST 2018


RKSimon added inline comments.


================
Comment at: lib/Analysis/ConstantFolding.cpp:1658
     if (isa<UndefValue>(Operands[0])) {
       // cosine(arg) is between -1 and 1. cosine(invalid arg) is NaN
+      if (IntrinsicID == Intrinsic::cos ||
----------------
add ctpop comment


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55950/new/

https://reviews.llvm.org/D55950





More information about the llvm-commits mailing list