https://github.com/nikic commented: IMHO this is a regression in code readability, not an improvement. We generally do not use TypeSwitch in llvm/, it looks like it leaked into VPlan (and VPlan only). https://github.com/llvm/llvm-project/pull/141074