[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp

Evan Cheng evan.cheng at apple.com
Mon Jan 22 15:14:10 PST 2007



Changes in directory llvm/lib/CodeGen/SelectionDAG:

ScheduleDAG.cpp updated: 1.114 -> 1.115
---
Log message:

Remove the DoubleTy special case.

---
Diffs of the changes:  (+5 -9)

 ScheduleDAG.cpp |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.114 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.115
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.114	Fri Jan 12 17:31:12 2007
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp	Mon Jan 22 17:13:55 2007
@@ -330,15 +330,11 @@
     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);
       }
     }
     






More information about the llvm-commits mailing list