[llvm] r322292 - [X86][SSE] Drop old insertps stack folding test

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 08:57:58 PST 2018


Author: rksimon
Date: Thu Jan 11 08:57:58 2018
New Revision: 322292

URL: http://llvm.org/viewvc/llvm-project?rev=322292&view=rev
Log:
[X86][SSE] Drop old insertps stack folding test

Broken test from old attempt for folding tables - we don't peek through extract_subvector spills at all (which is why it doesn't fold), and we already have foldMemoryOperandCustom to handle insertps immediate correction anyway.

Modified:
    llvm/trunk/test/CodeGen/X86/stack-folding-fp-avx1.ll

Modified: llvm/trunk/test/CodeGen/X86/stack-folding-fp-avx1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/stack-folding-fp-avx1.ll?rev=322292&r1=322291&r2=322292&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/stack-folding-fp-avx1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/stack-folding-fp-avx1.ll Thu Jan 11 08:57:58 2018
@@ -1934,19 +1934,5 @@ define <8 x float> @stack_fold_xorps_ymm
   ret <8 x float> %6
 }
 
-define <4 x float> @stack_nofold_insertps(<8 x float> %a0, <8 x float> %a1) {
-; Cannot fold this without changing the immediate.
-; CHECK-LABEL: stack_nofold_insertps
-; CHECK:       32-byte Spill
-; CHECK:       nop
-; CHECK:       32-byte Reload
-; CHECK:       vinsertps $179, {{%xmm., %xmm., %xmm.}}
-  %1 = tail call <2 x i64> asm sideeffect "nop", "=x,~{xmm2},~{xmm3},~{xmm4},~{xmm5},~{xmm6},~{xmm7},~{xmm8},~{xmm9},~{xmm10},~{xmm11},~{xmm12},~{xmm13},~{xmm14},~{xmm15},~{flags}"()
-  %v0 = shufflevector <8 x float> %a0, <8 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
-  %v1 = shufflevector <8 x float> %a1, <8 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
-  %res = call <4 x float> @llvm.x86.sse41.insertps(<4 x float> %v0, <4 x float> %v1, i8 179)
-  ret <4 x float> %res
-}
-
 attributes #0 = { "unsafe-fp-math"="false" }
 attributes #1 = { "unsafe-fp-math"="true" }




More information about the llvm-commits mailing list