[PATCH] D38272: [SimplifyIndVar] Constant fold IV users

Hongbin Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 15:31:13 PDT 2017


etherzhhb added inline comments.


================
Comment at: test/Transforms/IndVarSimplify/replace-srem-by-urem.ll:74
   %mul = mul nsw i32 %i.01, 64
-  %rem = srem i32 %mul, 8
+  %rem = srem i32 %mul, 7
 ; CHECK:     urem
----------------
sanjoy wrote:
> Did you change this to prevent constant folding?  If so, please mention that in the commit message.
Ok, I am thinking to copy this case over to constant-fold.ll


Repository:
  rL LLVM

https://reviews.llvm.org/D38272





More information about the llvm-commits mailing list