regression tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10388
91177308-0d34-0410-b5e6-
96231b3b80d8
constantThatMustBeLoaded = true;
}
} else {
+ //
+ // If the operand is from the constant pool, don't try to change it.
+ //
+ if (mop.getType() == MachineOperand::MO_ConstantPoolIndex) {
+ continue;
+ }
assert(mop.isImmediate());
bool isSigned = mop.getType() == MachineOperand::MO_SignExtendedImmed;
constantThatMustBeLoaded = true;
}
} else {
+ //
+ // If the operand is from the constant pool, don't try to change it.
+ //
+ if (mop.getType() == MachineOperand::MO_ConstantPoolIndex) {
+ continue;
+ }
assert(mop.isImmediate());
bool isSigned = mop.getType() == MachineOperand::MO_SignExtendedImmed;