mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
Fix miscompilations in the SparcV9 backend that were induced by this patch:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20041011/019311.html llvm-svn: 17130
This commit is contained in:
parent
cac643c78f
commit
9f1c4d5b67
@ -153,10 +153,20 @@ private:
|
||||
}
|
||||
|
||||
MachineOperand(Value *V, MachineOperandType OpTy, UseType UseTy,
|
||||
bool isPCRelative = false)
|
||||
: flags(UseTy | (isPCRelative?PCRELATIVE:0)), opType(OpTy) {
|
||||
assert(OpTy != MachineOperand::MO_GlobalAddress);
|
||||
zeroContents();
|
||||
contents.value = V;
|
||||
extra.regNum = -1;
|
||||
}
|
||||
|
||||
MachineOperand(GlobalValue *V, MachineOperandType OpTy, UseType UseTy,
|
||||
bool isPCRelative = false, int Offset = 0)
|
||||
: flags(UseTy | (isPCRelative?PCRELATIVE:0)), opType(OpTy) {
|
||||
assert(OpTy == MachineOperand::MO_GlobalAddress);
|
||||
zeroContents ();
|
||||
contents.value = V;
|
||||
contents.value = (Value*)V;
|
||||
extra.offset = Offset;
|
||||
}
|
||||
|
||||
@ -642,7 +652,7 @@ public:
|
||||
assert(!OperandsComplete() &&
|
||||
"Trying to add an operand to a machine instr that is already done!");
|
||||
operands.push_back(
|
||||
MachineOperand((Value*)GV, MachineOperand::MO_GlobalAddress,
|
||||
MachineOperand(GV, MachineOperand::MO_GlobalAddress,
|
||||
MachineOperand::Use, isPCRelative, Offset));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user