Remove the DoubleTy special case.

llvm-svn: 33449
This commit is contained in:
Evan Cheng 2007-01-22 23:13:55 +00:00
parent 107015e2fa
commit be48a47d9d
1 changed files with 5 additions and 9 deletions

View File

@ -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);
}
} }
} }