Removing switch blocks and replacing them with compares and branches
allows architectures that support predication to vectorize.
Details
Details
- Reviewers
nikic fhahn lebedev.ri
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This has been brought up several times already, lastly in D108138, i believe noting principally changed since then.
Comment Actions
Ok, I'm abandoning the patch for now as it don't teach the LV to recognise switches.
clang-format: please reformat the code
-RemoveSwitchBlocks("remove-switch-blocks", cl::init(true), cl::Hidden, - cl::desc("Convert switch blocks into a branch sequence " - "prior to vectorization.")); + RemoveSwitchBlocks("remove-switch-blocks", cl::init(true), cl::Hidden, + cl::desc("Convert switch blocks into a branch sequence " + "prior to vectorization."));