mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
Remove the DoubleTy special case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aa3e123ebb
commit
f6d039a039
@ -330,15 +330,11 @@ void ScheduleDAG::AddOperand(MachineInstr *MI, SDOperand Op,
|
||||
const Type *Type = CP->getType();
|
||||
// MachineConstantPool wants an explicit alignment.
|
||||
if (Align == 0) {
|
||||
if (Type == Type::DoubleTy)
|
||||
Align = 3; // always 8-byte align doubles.
|
||||
else {
|
||||
Align = TM.getTargetData()->getTypeAlignmentShift(Type);
|
||||
if (Align == 0) {
|
||||
// Alignment of packed types. FIXME!
|
||||
Align = TM.getTargetData()->getTypeSize(Type);
|
||||
Align = Log2_64(Align);
|
||||
}
|
||||
Align = TM.getTargetData()->getTypeAlignmentShift(Type);
|
||||
if (Align == 0) {
|
||||
// Alignment of packed types. FIXME!
|
||||
Align = TM.getTargetData()->getTypeSize(Type);
|
||||
Align = Log2_64(Align);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user