[llvm] 5e630a9 - [test] precommit a test for missing (0 /u %x) SCEV fold
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 30 08:26:45 PDT 2021
Author: Philip Reames
Date: 2021-06-30T08:26:34-07:00
New Revision: 5e630a9202a363aae37e4e10655e894490f150f9
URL: https://github.com/llvm/llvm-project/commit/5e630a9202a363aae37e4e10655e894490f150f9
DIFF: https://github.com/llvm/llvm-project/commit/5e630a9202a363aae37e4e10655e894490f150f9.diff
LOG: [test] precommit a test for missing (0 /u %x) SCEV fold
Added:
Modified:
llvm/test/Analysis/ScalarEvolution/fold.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/ScalarEvolution/fold.ll b/llvm/test/Analysis/ScalarEvolution/fold.ll
index d55651cef3c64..72b62ecaeffc1 100644
--- a/llvm/test/Analysis/ScalarEvolution/fold.ll
+++ b/llvm/test/Analysis/ScalarEvolution/fold.ll
@@ -127,3 +127,11 @@ define i64 @test10(i64 %a, i64 %b) {
; CHECK-NEXT: --> 0
ret i64 %t2
}
+
+define i64 @test11(i64 %a) {
+; CHECK-LABEL: @test11
+ %t0 = udiv i64 0, %a
+; CHECK: %t0
+; CHECK-NEXT: --> (0 /u %a)
+ ret i64 %t0
+}
More information about the llvm-commits
mailing list