[clang] [llvm] [LV] Support generating masks for switch terminators. (PR #99808)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 09:14:10 PDT 2024


https://github.com/ayalz commented:

Great to see that switch statements can be vectorized by only teaching createEdgeMask() how to mask them! This conceptually replaces a switch statement with a series of non-cascading conditional branches - one per unique successor, along with if-converting them. In the long run each of these steps may be modelled separately in VPlan.
Also great to see the tests pre-committed! Have yet to review them next.

https://github.com/llvm/llvm-project/pull/99808


More information about the cfe-commits mailing list