[PATCH] D54653: Correct CreateAlignmentAssumption to check sign and power-of-2 (LLVM Part)
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 19 07:14:04 PST 2018
lebedev.ri added inline comments.
================
Comment at: include/llvm/IR/IRBuilder.h:2200
+
+ // Alignments are only valid if > 0 && IsPowerOf2.
+ Value *IsPositive = CreateICmp(
----------------
I would personally call whatever clang codegen(!) function to produce an assumption instead, yes.
https://reviews.llvm.org/D54653
More information about the llvm-commits
mailing list