vmustya wrote: @dtcxzyw, thank you for the hint! I've created another PR adding more cases, where it's more efficient to inverse the mask: https://github.com/llvm/llvm-project/pull/121519. So, I'm closing this PR. https://github.com/llvm/llvm-project/pull/121378