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

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 09:39:58 PDT 2017


sanjoy accepted this revision.
sanjoy added inline comments.
This revision is now accepted and ready to land.


================
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]
----------------
Put something else instead of `undef` here for completeness, loading from `undef` is UB.


https://reviews.llvm.org/D39228





More information about the llvm-commits mailing list