aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/load.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll
index f3090a4f95..1934709ffa 100644
--- a/test/Transforms/InstCombine/load.ll
+++ b/test/Transforms/InstCombine/load.ll
@@ -72,3 +72,17 @@ int %test9(int* %P) {
%Z = sub int %X, %Y
ret int %Z
}
+
+int %test10(bool %C, int* %P, int* %Q) {
+ br bool %C, label %T, label %F
+T:
+ store int 1, int* %Q
+ store int 0, int* %P
+ br label %C
+F:
+ store int 0, int* %P
+ br label %C
+C:
+ %V = load int* %P ;; always 0
+ ret int %V
+}