[PATCH] D30686: [SLP] PR32078: convert scalar operations to vector.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 23 21:21:10 PST 2019


RKSimon added reviewers: vporpo, anton-afanasyev.
RKSimon added a comment.

@ABataev Would it be worth resurrecting this or starting again? We have a similar test case in https://bugs.llvm.org/show_bug.cgi?id=44008

current:

  %L0 = extractelement <2 x float> %1, i32 0
  %L1 = extractelement <2 x float> %1, i32 1
  %Mul0 = fmul float %L0, 2.000000e+00
  %Mul1 = fmul float %L1, 2.000000e+00

better:

  %Mul = fmul <2 x float> %1, <2.000000e+00, 2.000000e+00>
  %L0 = extractelement <2 x float> %Mul, i32 0
  %L1 = extractelement <2 x float> %Mul, i32 1


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

https://reviews.llvm.org/D30686





More information about the llvm-commits mailing list