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,9 +330,6 @@ 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 = 3; // always 8-byte align doubles.
else {
Align = TM.getTargetData()->getTypeAlignmentShift(Type); Align = TM.getTargetData()->getTypeAlignmentShift(Type);
if (Align == 0) { if (Align == 0) {
// Alignment of packed types. FIXME! // Alignment of packed types. FIXME!
@ -340,7 +337,6 @@ void ScheduleDAG::AddOperand(MachineInstr *MI, SDOperand Op,
Align = Log2_64(Align); Align = Log2_64(Align);
} }
} }
}
unsigned Idx; unsigned Idx;
if (CP->isMachineConstantPoolEntry()) if (CP->isMachineConstantPoolEntry())