================
@@ -933,7 +936,7 @@ bool
RegBankLegalizeHelper::lowerSplitTo32Select(MachineInstr &MI) {
LLT DstTy = MRI.getType(Dst);
assert(DstTy == V4S16 || DstTy == V2S32 || DstTy == S64 ||
(DstTy.isPointer() && DstTy.getSizeInBits() == 64));
- LLT Ty = DstTy == V4S16 ? V2S16 : S32;
+ LLT Ty = DstTy.isFloat() ? S32 : DstTy.divide(2);
----------------
chinmaydd wrote:
Is this check needed ? Looking at `lowerSplitTo32` (and the asserts) I dont
think we need to do the `isFloat` check
https://github.com/llvm/llvm-project/pull/208270
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits