Amichaxx wrote: This patch was initially intended to be a follow-up patch to #112905, but has since been extended to included the further suggested patterns in this patch as well. https://github.com/llvm/llvm-project/pull/169692