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/CodeGen/Generic/2006-10-29-Crash.ll b/test/CodeGen/Generic/2006-10-29-Crash.ll
new file mode 100644
index 0000000..8857c93
--- /dev/null
+++ b/test/CodeGen/Generic/2006-10-29-Crash.ll
@@ -0,0 +1,21 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc
+
+void %form_component_prediction(int %dy) {
+entry:
+	%tmp7 = and int %dy, 1		; <int> [#uses=1]
+	%tmp27 = seteq int %tmp7, 0		; <bool> [#uses=1]
+	br bool false, label %cond_next30, label %bb115
+
+cond_next30:		; preds = %entry
+	ret void
+
+bb115:		; preds = %entry
+	%bothcond1 = or bool %tmp27, false		; <bool> [#uses=1]
+	br bool %bothcond1, label %bb228, label %cond_next125
+
+cond_next125:		; preds = %bb115
+	ret void
+
+bb228:		; preds = %bb115
+	ret void
+}