[PATCH] D39228: [SCEV] Enhance SCEVFindUnsafe for division

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 10:46:10 PDT 2017


mkazantsev added inline comments.


================
Comment at: test/Transforms/IndVarSimplify/udiv.ll:172
+entry:
+  %denom = load i64, i64* undef, align 4, !range !0
+  %div0 = udiv i64 %n, %denom                          ; <i64> [#uses=1]
----------------
sanjoy wrote:
> Put something else instead of `undef` here for completeness, loading from `undef` is UB.
Ok, will do before checking in.


https://reviews.llvm.org/D39228





More information about the llvm-commits mailing list