parent
107015e2fa
commit
be48a47d9d
|
@ -330,15 +330,11 @@ void ScheduleDAG::AddOperand(MachineInstr *MI, SDOperand Op,
|
||||||
const Type *Type = CP->getType();
|
const Type *Type = CP->getType();
|
||||||
// MachineConstantPool wants an explicit alignment.
|
// MachineConstantPool wants an explicit alignment.
|
||||||
if (Align == 0) {
|
if (Align == 0) {
|
||||||
if (Type == Type::DoubleTy)
|
Align = TM.getTargetData()->getTypeAlignmentShift(Type);
|
||||||
Align = 3; // always 8-byte align doubles.
|
if (Align == 0) {
|
||||||
else {
|
// Alignment of packed types. FIXME!
|
||||||
Align = TM.getTargetData()->getTypeAlignmentShift(Type);
|
Align = TM.getTargetData()->getTypeSize(Type);
|
||||||
if (Align == 0) {
|
Align = Log2_64(Align);
|
||||||
// Alignment of packed types. FIXME!
|
|
||||||
Align = TM.getTargetData()->getTypeSize(Type);
|
|
||||||
Align = Log2_64(Align);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue