[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp

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



Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.82 -> 1.83
---
Log message:

Allow the specification of explicit alignments for constant pool entries.


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

 PPCISelLowering.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.82 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.83
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.82	Tue Jan 31 13:20:21 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp	Tue Jan 31 16:21:34 2006
@@ -389,8 +389,9 @@
     return DAG.getNode(ISD::BUILD_PAIR, MVT::i64, OutLo, OutHi);
   }
   case ISD::ConstantPool: {
-    Constant *C = cast<ConstantPoolSDNode>(Op)->get();
-    SDOperand CPI = DAG.getTargetConstantPool(C, MVT::i32);
+    ConstantPoolSDNode *CP = cast<ConstantPoolSDNode>(Op);
+    Constant *C = CP->get();
+    SDOperand CPI = DAG.getTargetConstantPool(C, MVT::i32, CP->getAlignment());
     SDOperand Zero = DAG.getConstant(0, MVT::i32);
     
     if (PPCGenerateStaticCode) {






More information about the llvm-commits mailing list