[PATCH] D108138: [SimplifyCFG] Remove switch statements before vectorization

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 17 03:25:14 PDT 2021


david-arm added a comment.

In D108138#2948975 <https://reviews.llvm.org/D108138#2948975>, @dmgreen wrote:

>> I'm under the impression that the vectoriser has a policy of never making scalar transformations
>
> I'm not sure what you mean. I've not looked into the details, but it could presumably be done as some sort of VPlan transformation, possibly in the constructions of vplans to treat switches like multiple icmp's/branches?

Hi @dmgreen, I just meant that if LV makes a scalar transformation prior to legality/cost-model checks, then for some reason we don't vectorise, we then end up with a changed scalar body without any vectorisation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108138



More information about the llvm-commits mailing list