mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Fix a compile error with VC++, which things that static const arrays need
to be dynamically initialized. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7dbcb75b15
commit
a56cea4495
@ -1499,7 +1499,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
case ISD::MUL:
|
||||
case ISD::AND:
|
||||
case ISD::OR:
|
||||
case ISD::XOR:
|
||||
case ISD::XOR: {
|
||||
static const unsigned SUBTab[] = {
|
||||
X86::SUB8ri, X86::SUB16ri, X86::SUB32ri, 0, 0,
|
||||
X86::SUB8rm, X86::SUB16rm, X86::SUB32rm, X86::FSUB32m, X86::FSUB64m,
|
||||
@ -1680,7 +1680,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
BuildMI(BB, X86::MOV8rr, 1, Result).addReg(X86::AL);
|
||||
}
|
||||
return Result;
|
||||
|
||||
}
|
||||
case ISD::SELECT:
|
||||
if (N.getValueType() != MVT::i1 && N.getValueType() != MVT::i8) {
|
||||
if (getRegPressure(N.getOperand(1)) > getRegPressure(N.getOperand(2))) {
|
||||
|
Loading…
Reference in New Issue
Block a user