@@ -1456,11 +1456,11 @@ bool X86FastISel::X86SelectCmp(const Instruction *I) {
1456
1456
}
1457
1457
1458
1458
// FCMP_OEQ and FCMP_UNE cannot be checked with a single instruction.
1459
- static unsigned SETFOpcTable[2 ][3 ] = {
1459
+ static const uint16_t SETFOpcTable[2 ][3 ] = {
1460
1460
{ X86::SETEr, X86::SETNPr, X86::AND8rr },
1461
1461
{ X86::SETNEr, X86::SETPr, X86::OR8rr }
1462
1462
};
1463
- unsigned *SETFOpc = nullptr ;
1463
+ const uint16_t *SETFOpc = nullptr ;
1464
1464
switch (Predicate) {
1465
1465
default : break ;
1466
1466
case CmpInst::FCMP_OEQ: SETFOpc = &SETFOpcTable[0 ][0 ]; break ;
@@ -1964,11 +1964,11 @@ bool X86FastISel::X86FastEmitCMoveSelect(MVT RetVT, const Instruction *I) {
1964
1964
CmpInst::Predicate Predicate = optimizeCmpPredicate (CI);
1965
1965
1966
1966
// FCMP_OEQ and FCMP_UNE cannot be checked with a single instruction.
1967
- static unsigned SETFOpcTable[2 ][3 ] = {
1967
+ static const uint16_t SETFOpcTable[2 ][3 ] = {
1968
1968
{ X86::SETNPr, X86::SETEr , X86::TEST8rr },
1969
1969
{ X86::SETPr, X86::SETNEr, X86::OR8rr }
1970
1970
};
1971
- unsigned *SETFOpc = nullptr ;
1971
+ const uint16_t *SETFOpc = nullptr ;
1972
1972
switch (Predicate) {
1973
1973
default : break ;
1974
1974
case CmpInst::FCMP_OEQ:
@@ -2106,12 +2106,12 @@ bool X86FastISel::X86FastEmitSSESelect(MVT RetVT, const Instruction *I) {
2106
2106
std::swap (CmpLHS, CmpRHS);
2107
2107
2108
2108
// Choose the SSE instruction sequence based on data type (float or double).
2109
- static unsigned OpcTable[2 ][4 ] = {
2109
+ static const uint16_t OpcTable[2 ][4 ] = {
2110
2110
{ X86::CMPSSrr, X86::FsANDPSrr, X86::FsANDNPSrr, X86::FsORPSrr },
2111
2111
{ X86::CMPSDrr, X86::FsANDPDrr, X86::FsANDNPDrr, X86::FsORPDrr }
2112
2112
};
2113
2113
2114
- unsigned *Opc = nullptr ;
2114
+ const uint16_t *Opc = nullptr ;
2115
2115
switch (RetVT.SimpleTy ) {
2116
2116
default : return false ;
2117
2117
case MVT::f32 : Opc = &OpcTable[0 ][0 ]; break ;
0 commit comments