================
@@ -286,6 +287,25 @@ void RegBankLegalizeHelper::lowerSplitTo32(MachineInstr
&MI) {
MI.eraseFromParent();
}
+void RegBankLegalizeHelper::lowerSplitTo32Sel(MachineInstr &MI) {
+ Register Dst = MI.getOperand(0).getReg();
+ LLT DstTy = MRI.getType(Dst);
+ assert(DstTy == V4S16 || DstTy == V2S32 || DstTy == S64 ||
+ (DstTy.isPointer() && DstTy.getSizeInBits() == 64));
+ LLT Ty = (DstTy == V4S16 ? V2S16 : S32);
----------------
arsenm wrote:
```suggestion
LLT Ty = DstTy == V4S16 ? V2S16 : S32;
```
https://github.com/llvm/llvm-project/pull/132384
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits