[PATCH] D31968: Remove all allocation and divisions from GreatestCommonDivisor

Richard Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 13:41:51 PDT 2017


rsmith marked an inline comment as done.
rsmith added inline comments.


================
Comment at: unittests/ADT/APIntTest.cpp:2016
+  HugePrime.setAllBits();
+  HugePrime = HugePrime.zext(4450);
+
----------------
craig.topper wrote:
> Is this equivalent to APInt HugePrime(APInt::getLowBitsSet(4450, 4423))?
Looks like it is :) Switched to using that prior to commit.


Repository:
  rL LLVM

https://reviews.llvm.org/D31968





More information about the llvm-commits mailing list