From bb5cba3cca070e0a7eb85ef25c513cd6b86ddd01 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Tue, 26 Mar 2019 20:54:15 +0000 Subject: [SDAG] add simplifications for FP at node creation time We have the folds for fadd/fsub/fmul already in DAGCombiner, so it may be possible to remove that code if we can guarantee that these ops are zapped before they can exist. llvm-svn: 357029 --- llvm/test/CodeGen/X86/extract-fp.ll | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/test/CodeGen/X86/extract-fp.ll') diff --git a/llvm/test/CodeGen/X86/extract-fp.ll b/llvm/test/CodeGen/X86/extract-fp.ll index 06ba30b603e..5632450669a 100644 --- a/llvm/test/CodeGen/X86/extract-fp.ll +++ b/llvm/test/CodeGen/X86/extract-fp.ll @@ -36,12 +36,11 @@ define float @ext_fmul_v4f32(<4 x float> %x) { ret float %ext } -; TODO: X / 1.0 --> X +; X / 1.0 --> X define float @ext_fdiv_v4f32(<4 x float> %x) { ; CHECK-LABEL: ext_fdiv_v4f32: ; CHECK: # %bb.0: -; CHECK-NEXT: divss {{.*}}(%rip), %xmm0 ; CHECK-NEXT: retq %bo = fdiv <4 x float> %x, %ext = extractelement <4 x float> %bo, i32 0 -- cgit v1.2.3