[PATCH] D54653: Correct CreateAlignmentAssumption to check sign and power-of-2 (LLVM Part)

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 16 15:50:01 PST 2018


craig.topper added inline comments.


================
Comment at: include/llvm/IR/IRBuilder.h:2213
+    Value *IsPowerOf2 =
+        CreateICmpEQ(AlignAndMinus1, ConstantInt::get(Alignment->getType(), 0),
+                     "ispowertwo");
----------------
is Alignment->getType() and IntPtrTy the same thing here? I ask because the Constant in Sub1 was created with one and the ICmp was created with the other.


Repository:
  rL LLVM

https://reviews.llvm.org/D54653





More information about the llvm-commits mailing list