dtcxzyw wrote: > The APInt::clearHighBits part LGTM if you want to pull it out into its own PR and I'll accept it See https://github.com/llvm/llvm-project/pull/91938 https://github.com/llvm/llvm-project/pull/90034