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/Other/2003-02-19-LoopInfoNestingBug.ll b/test/Other/2003-02-19-LoopInfoNestingBug.ll
new file mode 100644
index 0000000..ebad6ba
--- /dev/null
+++ b/test/Other/2003-02-19-LoopInfoNestingBug.ll
@@ -0,0 +1,28 @@
+; LoopInfo is incorrectly calculating loop nesting!  In this case it doesn't 
+; figure out that loop "Inner" should be nested inside of leep "LoopHeader", 
+; and instead nests it just inside loop "Top"
+;
+; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -loops | \
+; RUN:   grep {     Loop Containing:\[ \]*%Inner}
+;
+
+implementation
+
+void %test() {
+	br label %Top
+Top:
+	br label %LoopHeader
+Next:
+	br bool false, label %Inner, label %Out
+Inner:
+	br bool false, label %Inner, label %LoopHeader
+
+LoopHeader:
+	br label %Next
+
+Out:
+	br bool false, label %Top, label %Done
+
+Done:
+	ret void
+}