File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
llvm/lib/Target/RISCV/GISel Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
85
85
86
86
// Merge/Unmerge
87
87
for (unsigned Op : {G_MERGE_VALUES, G_UNMERGE_VALUES}) {
88
- unsigned BigTyIdx = Op == G_MERGE_VALUES ? 0 : 1 ;
89
- unsigned LitTyIdx = Op == G_MERGE_VALUES ? 1 : 0 ;
88
+ unsigned BigTyIdx = ( Op == G_MERGE_VALUES) ? 0 : 1 ;
89
+ unsigned LitTyIdx = ( Op == G_MERGE_VALUES) ? 1 : 0 ;
90
90
auto &MergeUnmergeActions = getActionDefinitionsBuilder (Op);
91
91
if (XLen == 32 && ST.hasStdExtD ()) {
92
- LLT IdxZeroTy = G_MERGE_VALUES ? s64 : s32;
93
- LLT IdxOneTy = G_MERGE_VALUES ? s32 : s64;
94
- MergeUnmergeActions.legalFor ({IdxZeroTy, IdxOneTy});
92
+ LLT IdxZeroTy = (Op == G_MERGE_VALUES) ? s64 : s32;
93
+ LLT IdxOneTy = (Op == G_MERGE_VALUES) ? s32 : s64;
94
+ MergeUnmergeActions.legalFor ({{ IdxZeroTy, IdxOneTy} });
95
95
}
96
96
MergeUnmergeActions.widenScalarToNextPow2 (LitTyIdx, XLen)
97
97
.widenScalarToNextPow2 (BigTyIdx, XLen)
You can’t perform that action at this time.
0 commit comments