It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Transforms/CondProp/basictest.ll b/test/Transforms/CondProp/basictest.ll
new file mode 100644
index 0000000..1e2a936
--- /dev/null
+++ b/test/Transforms/CondProp/basictest.ll
@@ -0,0 +1,19 @@
+; RUN: llvm-upgrade < %s | llvm-as | opt -condprop | llvm-dis | \
+; RUN: not grep {br label}
+
+int %test(bool %C) {
+ br bool %C, label %T1, label %F1
+T1:
+ br label %Cont
+F1:
+ br label %Cont
+Cont:
+ %C2 = phi bool [false, %F1], [true, %T1]
+ br bool %C2, label %T2, label %F2
+T2:
+ call void %bar()
+ ret int 17
+F2:
+ ret int 1
+}
+declare void %bar()