[PATCH] D34598: ScalarEvolution: Add URem support
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 11:38:30 PDT 2017
efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.
LGTM with one minor comment.
================
Comment at: lib/Analysis/ScalarEvolution.cpp:2948
+ if (RHSC->getValue()->equalsInt(1))
+ return getZero(LHS->getType()); // X urem 1 --> 0
+
----------------
Please add a test for this.
https://reviews.llvm.org/D34598
More information about the llvm-commits
mailing list