[PATCH] D127115: [RFC][DAGCombine] Make sure combined nodes are added back to the worklist in topological order.

Paweł Bylica via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 14:14:05 PST 2022


chfast added inline comments.


================
Comment at: llvm/test/CodeGen/X86/vector-shuffle-sse4a.ll:367
 ; AMD10H-NEXT:    shufps {{.*#+}} xmm0 = xmm0[0,2,2,3]
+; AMD10H-NEXT:    andps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0
 ; AMD10H-NEXT:    pshuflw {{.*#+}} xmm0 = xmm0[2,1,2,3,4,5,6,7]
----------------
I don't understand why this change happened and if it is for better.


================
Comment at: llvm/test/CodeGen/X86/xor.ll:412
 ; X64-WIN:       # %bb.0:
+; X64-WIN-NEXT:    andb $1, %cl
 ; X64-WIN-NEXT:    movzbl %cl, %eax
----------------
Is this expected preference of having the instruction with smaller operand?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127115/new/

https://reviews.llvm.org/D127115



More information about the llvm-commits mailing list