[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: AMDGPURegBankLegalize (PR #112864)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Dec 4 16:41:24 PST 2024
================
@@ -106,3 +106,59 @@ void IntrinsicLaneMaskAnalyzer::findLCSSAPhi(Register Reg) {
S32S64LaneMask.insert(LCSSAPhi.getOperand(0).getReg());
}
}
+
+static LLT getReadAnyLaneSplitTy(LLT Ty) {
+ if (Ty.isVector()) {
+ LLT ElTy = Ty.getElementType();
+ if (ElTy == LLT::scalar(16))
+ return LLT::fixed_vector(2, 16);
----------------
arsenm wrote:
```suggestion
if (ElTy.getSizeInBits() == 16)
return LLT::fixed_vector(2, EltTy);
```
Future proofing for float LLT
https://github.com/llvm/llvm-project/pull/112864
More information about the llvm-branch-commits
mailing list