[llvm-commits] CVS: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp

Evan Cheng evan.cheng at apple.com
Tue Jan 31 14:21:50 PST 2006



Changes in directory llvm/lib/Target/IA64:

IA64ISelDAGToDAG.cpp updated: 1.32 -> 1.33
---
Log message:

Allow the specification of explicit alignments for constant pool entries.


---
Diffs of the changes:  (+4 -2)

 IA64ISelDAGToDAG.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp
diff -u llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.32 llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.33
--- llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp:1.32	Sun Jan 29 00:26:07 2006
+++ llvm/lib/Target/IA64/IA64ISelDAGToDAG.cpp	Tue Jan 31 16:21:34 2006
@@ -442,8 +442,10 @@
 
   case ISD::ConstantPool: { // TODO: nuke the constant pool
 			    //       (ia64 doesn't need one)
-    Constant *C = cast<ConstantPoolSDNode>(N)->get();
-    SDOperand CPI = CurDAG->getTargetConstantPool(C, MVT::i64);
+    ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(N);
+    Constant *C = CP->get();
+    SDOperand CPI = CurDAG->getTargetConstantPool(C, MVT::i64,
+                                                  CP->getAlignment());
     return CurDAG->getTargetNode(IA64::ADDL_GA, MVT::i64, // ?
 	                      CurDAG->getRegister(IA64::r1, MVT::i64), CPI);
   }






More information about the llvm-commits mailing list