[llvm-commits] [llvm] r106953 - /llvm/trunk/test/Transforms/PartialSpecialize/two-specializations.ll
Kenneth Uildriks
kennethuil at gmail.com
Sat Jun 26 11:47:40 PDT 2010
Author: kennethuil
Date: Sat Jun 26 13:47:40 2010
New Revision: 106953
URL: http://llvm.org/viewvc/llvm-project?rev=106953&view=rev
Log:
Partial specialization test should not depend on the order of specialization operations or the names assigned to the specialized functions
Modified:
llvm/trunk/test/Transforms/PartialSpecialize/two-specializations.ll
Modified: llvm/trunk/test/Transforms/PartialSpecialize/two-specializations.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/PartialSpecialize/two-specializations.ll?rev=106953&r1=106952&r2=106953&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/PartialSpecialize/two-specializations.ll (original)
+++ llvm/trunk/test/Transforms/PartialSpecialize/two-specializations.ll Sat Jun 26 13:47:40 2010
@@ -1,7 +1,7 @@
; If there are two specializations of a function, make sure each callsite
; calls the right one.
;
-; RUN: opt -S -partialspecialization %s | FileCheck %s
+; RUN: opt -S -partialspecialization %s | opt -S -inline %s | FileCheck %s
declare void @callback1()
declare void @callback2()
@@ -14,13 +14,13 @@
{
Entry:
; CHECK: Entry
-; CHECK-NEXT: call void @UseCallback1()
-; CHECK-NEXT: call void @UseCallback1()
-; CHECK-NEXT: call void @UseCallback2()
-; CHECK-NEXT: call void @UseCallback(void ()* %pNonConstCallback)
-; CHECK-NEXT: call void @UseCallback1()
-; CHECK-NEXT: call void @UseCallback2()
-; CHECK-NEXT: call void @UseCallback2()
+; CHECK-NEXT: call void @callback1()
+; CHECK-NEXT: call void @callback1()
+; CHECK-NEXT: call void @callback2()
+; CHECK-NEXT: call void %pNonConstCallback()
+; CHECK-NEXT: call void @callback1()
+; CHECK-NEXT: call void @callback2()
+; CHECK-NEXT: call void @callback2()
call void @UseCallback(void()* @callback1)
call void @UseCallback(void()* @callback1)
call void @UseCallback(void()* @callback2)
More information about the llvm-commits
mailing list