[llvm] [LV] Support generating masks for switch terminators. (PR #99808)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 11 07:24:41 PDT 2024
================
@@ -104,9 +181,62 @@ define void @switch_all_dests_distinct(ptr %start, ptr %end) {
; FORCED-LABEL: define void @switch_all_dests_distinct(
----------------
fhahn wrote:
I checked and the reason for not vectorizing is that `getCFInstrCost` considers `Switch` as free on X86.
https://github.com/llvm/llvm-project/pull/99808
More information about the llvm-commits
mailing list