[PATCH] D98410: [ConstantFold] Handle undef/poison when constant folding smul_fix/smul_fix_sat

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 11 04:04:36 PST 2021


bjope added inline comments.


================
Comment at: llvm/lib/Analysis/ConstantFolding.cpp:2808
+    }
+    return ConstantInt::get(Ty->getContext(), Product.sextOrTrunc(Width));
   }
----------------
Just a side note not really related to this patch; I suspect that we perhaps could use APFixedPoint here, somehow, in the future.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98410



More information about the llvm-commits mailing list