[llvm] c26fe19 - [BasicAA] Add test for PR63266 (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 19 05:41:02 PDT 2023
Author: Nikita Popov
Date: 2023-06-19T14:40:54+02:00
New Revision: c26fe199c13871db565e14651c060616143d7a8c
URL: https://github.com/llvm/llvm-project/commit/c26fe199c13871db565e14651c060616143d7a8c
DIFF: https://github.com/llvm/llvm-project/commit/c26fe199c13871db565e14651c060616143d7a8c.diff
LOG: [BasicAA] Add test for PR63266 (NFC)
Added:
Modified:
llvm/test/Analysis/BasicAA/range.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/BasicAA/range.ll b/llvm/test/Analysis/BasicAA/range.ll
index f153b58af3c88..06c8103994a8a 100644
--- a/llvm/test/Analysis/BasicAA/range.ll
+++ b/llvm/test/Analysis/BasicAA/range.ll
@@ -239,6 +239,26 @@ define void @benign_overflow(ptr %p, i64 %o) {
ret void
}
+; FIXME: This is a miscompile
+; CHECK-LABEL: pr63266
+; CHECK: NoAlias: i8* %gep2, i8* %offset16
+define void @pr63266(i1 %c, ptr %base) {
+entry:
+ %offset16 = getelementptr inbounds i8, ptr %base, i64 16
+ %gep1 = getelementptr i8, ptr %base, i64 -9223372036854775792
+ br i1 %c, label %if, label %join
+
+if:
+ br label %join
+
+join:
+ %phi = phi i64 [ -9223372036854775808, %if ], [ 0, %entry ]
+ %gep2 = getelementptr i8, ptr %gep1, i64 %phi
+ store i8 0, ptr %gep2
+ load i8, ptr %offset16
+ ret void
+}
+
declare void @llvm.assume(i1)
More information about the llvm-commits
mailing list