[llvm] 59dbf4d - [InstSimplify] Add load of undef aggregate test (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 21 09:50:14 PDT 2021
Author: Nikita Popov
Date: 2021-03-21T17:42:26+01:00
New Revision: 59dbf4d516b19dbe08d378a620b72749513611e5
URL: https://github.com/llvm/llvm-project/commit/59dbf4d516b19dbe08d378a620b72749513611e5
DIFF: https://github.com/llvm/llvm-project/commit/59dbf4d516b19dbe08d378a620b72749513611e5.diff
LOG: [InstSimplify] Add load of undef aggregate test (NFC)
To make sure this doesn't crash the following commit.
Added:
Modified:
llvm/test/Transforms/InstSimplify/ConstProp/loads.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstSimplify/ConstProp/loads.ll b/llvm/test/Transforms/InstSimplify/ConstProp/loads.ll
index 4da8f0d7decd..6f25b9f8d10c 100644
--- a/llvm/test/Transforms/InstSimplify/ConstProp/loads.ll
+++ b/llvm/test/Transforms/InstSimplify/ConstProp/loads.ll
@@ -251,3 +251,13 @@ define i64 @test_array_of_zero_size_array() {
%v = load i64, i64* bitcast ([4294967295 x [0 x i32]]* @g9 to i64*)
ret i64 %v
}
+
+ at g10 = constant {i128} {i128 undef}
+
+define i32* @test_undef_aggregate() {
+; CHECK-LABEL: @test_undef_aggregate(
+; CHECK-NEXT: ret i32* undef
+;
+ %v = load i32*, i32** bitcast ({i128}* @g10 to i32**)
+ ret i32* %v
+}
More information about the llvm-commits
mailing list