[llvm] r217057 - Add a regression test to sanity check the PBQP allocator.
Lang Hames
lhames at gmail.com
Wed Sep 3 11:04:10 PDT 2014
Author: lhames
Date: Wed Sep 3 13:04:10 2014
New Revision: 217057
URL: http://llvm.org/viewvc/llvm-project?rev=217057&view=rev
Log:
Add a regression test to sanity check the PBQP allocator.
Added:
llvm/trunk/test/CodeGen/Generic/PBQP.ll
Added: llvm/trunk/test/CodeGen/Generic/PBQP.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/PBQP.ll?rev=217057&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/PBQP.ll (added)
+++ llvm/trunk/test/CodeGen/Generic/PBQP.ll Wed Sep 3 13:04:10 2014
@@ -0,0 +1,29 @@
+; RUN: llc -regalloc=pbqp < %s
+
+define i32 @foo() {
+entry:
+ %call = tail call i32 (...)* @baz()
+ %call1 = tail call i32 (...)* @baz()
+ %call2 = tail call i32 (...)* @baz()
+ %call3 = tail call i32 (...)* @baz()
+ %call4 = tail call i32 (...)* @baz()
+ %call5 = tail call i32 (...)* @baz()
+ %call6 = tail call i32 (...)* @baz()
+ %call7 = tail call i32 (...)* @baz()
+ %call8 = tail call i32 (...)* @baz()
+ %call9 = tail call i32 (...)* @baz()
+ %call10 = tail call i32 (...)* @baz()
+ %call11 = tail call i32 (...)* @baz()
+ %call12 = tail call i32 (...)* @baz()
+ %call13 = tail call i32 (...)* @baz()
+ %call14 = tail call i32 (...)* @baz()
+ %call15 = tail call i32 (...)* @baz()
+ %call16 = tail call i32 (...)* @baz()
+ %call17 = tail call i32 @bar(i32 %call, i32 %call1, i32 %call2, i32 %call3, i32 %call4, i32 %call5, i32 %call6, i32 %call7, i32 %call8, i32 %call9, i32 %call10, i32 %call11, i32 %call12, i32 %call13, i32 %call14, i32 %call15, i32 %call16)
+ ret i32 %call17
+}
+
+declare i32 @baz(...)
+
+declare i32 @bar(i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32)
+
More information about the llvm-commits
mailing list