[PATCH] D65494: [Support] Added overflow checking add, sub and mul.

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 04:47:44 PDT 2019


lebedev.ri added inline comments.


================
Comment at: llvm/include/llvm/Support/MathExtras.h:783-786
   // Hacker's Delight, p. 29
   T Z = X + Y;
   Overflowed = (Z < X || Z < Y);
   if (Overflowed)
----------------
Do you want to also refactor the functions that already used that checking at the same time?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D65494





More information about the llvm-commits mailing list