[llvm] r275568 - In dag-optnone.ll, use varargs instead of win64 to fast SDIsel.

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 15 08:30:18 PDT 2016


Author: nico
Date: Fri Jul 15 10:30:18 2016
New Revision: 275568

URL: http://llvm.org/viewvc/llvm-project?rev=275568&view=rev
Log:
In dag-optnone.ll, use varargs instead of win64 to fast SDIsel.

The test used to rely on targeting win64 to disable fast isel,
but I'd like to teach fast isel about win64 rets.  Change the
test to use varargs to disable fast isel.

Modified:
    llvm/trunk/test/CodeGen/X86/dag-optnone.ll

Modified: llvm/trunk/test/CodeGen/X86/dag-optnone.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/dag-optnone.ll?rev=275568&r1=275567&r2=275568&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/dag-optnone.ll (original)
+++ llvm/trunk/test/CodeGen/X86/dag-optnone.ll Fri Jul 15 10:30:18 2016
@@ -23,13 +23,12 @@
 
 
 ; The test cases @foo[WithOptnone] prove that the same DAG combine happens
-; with -O0 and with 'optnone' set.  To prove this, we use a Windows triple to
-; cause fast-isel to bail out (because something about the calling convention
-; is not handled in fast-isel).  Then we have a repeated fadd that can be
-; combined into an fmul.  We show that this happens in both the non-optnone
-; function and the optnone function.
+; with -O0 and with 'optnone' set.  To prove this, we use a varags to cause
+; fast-isel to bail out (varags aren't handled in fast isel).  Then we have
+; a repeated fadd that can be combined into an fmul.  We show that this
+; happens in both the non-optnone function and the optnone function.
 
-define float @foo(float %x) #0 {
+define float @foo(float %x, ...) #0 {
 entry:
   %add = fadd fast float %x, %x
   %add1 = fadd fast float %add, %x
@@ -41,7 +40,7 @@ entry:
 ; CHECK:       mul
 ; CHECK-NEXT:  ret
 
-define float @fooWithOptnone(float %x) #1 {
+define float @fooWithOptnone(float %x, ...) #1 {
 entry:
   %add = fadd fast float %x, %x
   %add1 = fadd fast float %add, %x
@@ -60,7 +59,7 @@ entry:
 
 @id84 = common global <16 x i32> zeroinitializer, align 64
 
-define void @bar() #1 {
+define void @bar(...) #1 {
 entry:
   %id83 = alloca <16 x i8>, align 16
   %0 = load <16 x i32>, <16 x i32>* @id84, align 64




More information about the llvm-commits mailing list