Files
clang-p2996/llvm/test/CodeGen/X86/isel-blendi-gettargetconstant.ll
Amaury Séchet a70d5e25f3 [DAGCombine] Make sure combined nodes are added back to the worklist in topological order.
Currently, a node and its users are added back to the worklist in reverse topological order after it is combined. This diff changes that order to be topological. This is part of a larger migration to get the DAGCombiner to process nodes in topological order.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D127115
2023-06-13 09:14:37 +00:00

19 lines
684 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-linux-gnu -mattr=sse4.2 | FileCheck %s
define void @csrot_(ptr %0) {
; CHECK-LABEL: csrot_:
; CHECK: # %bb.0:
; CHECK-NEXT: movss {{.*#+}} xmm0 = mem[0],zero,zero,zero
; CHECK-NEXT: xorps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
; CHECK-NEXT: blendps {{.*#+}} xmm0 = xmm0[0],mem[1,2,3]
; CHECK-NEXT: movlps %xmm0, (%rax)
; CHECK-NEXT: retq
1:
%2 = load float, ptr %0, align 4
%3 = fsub float -0.000000e+00, %2
%4 = insertelement <2 x float> <float undef, float -0.000000e+00>, float %3, i32 0
store <2 x float> %4, ptr undef, align 8
ret void
}