mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Simplify uses of MVT and EVT. An MVT can be compared directly
with a SimpleValueType, while an EVT supports equality and inequality comparisons with SimpleValueType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2232,7 +2232,7 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
}
|
||||
|
||||
case OPC_SwitchType: {
|
||||
MVT::SimpleValueType CurNodeVT = N.getValueType().getSimpleVT().SimpleTy;
|
||||
MVT CurNodeVT = N.getValueType().getSimpleVT();
|
||||
unsigned SwitchStart = MatcherIndex-1; (void)SwitchStart;
|
||||
unsigned CaseSize;
|
||||
while (1) {
|
||||
@@ -2242,10 +2242,9 @@ SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
CaseSize = GetVBR(CaseSize, MatcherTable, MatcherIndex);
|
||||
if (CaseSize == 0) break;
|
||||
|
||||
MVT::SimpleValueType CaseVT =
|
||||
(MVT::SimpleValueType)MatcherTable[MatcherIndex++];
|
||||
MVT CaseVT = (MVT::SimpleValueType)MatcherTable[MatcherIndex++];
|
||||
if (CaseVT == MVT::iPTR)
|
||||
CaseVT = TLI.getPointerTy().SimpleTy;
|
||||
CaseVT = TLI.getPointerTy();
|
||||
|
||||
// If the VT matches, then we will execute this case.
|
||||
if (CurNodeVT == CaseVT)
|
||||
|
Reference in New Issue
Block a user