[PATCH] D108136: [LoopVectorize] Permit vectorisation of more select(cmp(), X, Y) reduction patterns
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 01:47:03 PDT 2021
david-arm added inline comments.
================
Comment at: llvm/test/Transforms/LoopVectorize/AArch64/sve-select-cmp.ll:18
+
+; CHECK-VF4IC4: vector.body:
+; CHECK-VF4IC4: [[VEC_PHI1:%.*]] = phi <vscale x 4 x i32> [ shufflevector (<vscale x 4 x i32> insertelement (<vscale x 4 x i32> poison, i32 3, i32 0), <vscale x 4 x i32> poison, <vscale x 4 x i32> zeroinitializer), %vector.ph ], [ [[VEC_SEL1:%.*]], %vector.body ]
----------------
kmclaughlin wrote:
> I could be wrong, but I think it's necessary to check for the correct label before the CHECK lines for each prefix? (e.g. `CHECK-VF4IC4-LABEL` above here)
I think this probably works because I also add "--check-prefix=CHECK" to the FileCheck command, however maybe it looks better to do it the way you suggest. It probably looks more obvious!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108136/new/
https://reviews.llvm.org/D108136
More information about the llvm-commits
mailing list